28 if (Points[1].
Y < Points[0].
Y && Points[1].
Y <= Points[2].
Y)
33 else if (Points[2].
Y < Points[0].
Y && Points[2].
Y <= Points[1].
Y)
41 if (Points[1].
Y > Points[2].
Y)
76 DrawTriangleTrapezoid(
90 DrawTriangleTrapezoid(
109 void DrawTriangleTrapezoid(
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::Math::TVector2< float > FVector2f
Definition MathFwd.h:74
#define UE_SMALL_NUMBER
Definition UnrealMathUtility.h:130
UE_REWRITE constexpr void Exchange(T &A, T &B)
Definition UnrealTemplate.h:627
FTriangleRasterizer(const RasterPolicyType &InRasterPolicy)
Definition Raster.h:105
void DrawTriangle(const InterpolantType &I0, const InterpolantType &I1, const InterpolantType &I2, const FVector2D &P0, const FVector2D &P1, const FVector2D &P2, bool BackFacing)
Definition Raster.h:21
RasterPolicyType::InterpolantType InterpolantType
Definition Raster.h:19
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592
static UE_FORCEINLINE_HINT bool IsNearlyZero(float Value, float ErrorTolerance=UE_SMALL_NUMBER)
Definition UnrealMathUtility.h:407
T Y
Definition Vector2D.h:52
T X
Definition Vector2D.h:49