This is the documentation for Enlighten.

struct Geo RastTri

struct Geo::RastTri

records details of the input triangle

Variables

Name Description
float m_dX2

x2-x1, y2-y1

float m_dX3

x3-x1, y3-y1

float m_dY2

x2-x1, y2-y1

float m_dY3

x3-x1, y3-y1

float m_X1

x1, y1

float m_Y1

x1, y1

Functions

Name Description
GetBarycentricCoords(float, float, float &, float &)

Gets the barycentric coords of the given point (x, y).

RastTri(float, float, float, float, float, float)

Constructor.


void Geo::RastTri::GetBarycentricCoords


public: void GetBarycentricCoords
(
    float x,
    float y,
    float & u,
    float & v
) const


Gets the barycentric coords of the given point (x, y).


Geo::RastTri::RastTri


public: RastTri
(
    float x1,
    float y1,
    float x2,
    float y2,
    float x3,
    float y3
)


Constructor.