Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

struct Geo::RastTri

records details of the input triangle

Variables

NameDescription
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

NameDescription
GetBarycentricCoords(float, float, float &, float &)

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

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

Constructor.


Anchor
a11602daf89f124258458c9e9b212e696
a11602daf89f124258458c9e9b212e696

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).


Anchor
ac1183ee52feb8d04bb7b2e6b9e750634
ac1183ee52feb8d04bb7b2e6b9e750634

Geo::RastTri::RastTri

...

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

...

Constructor.