#include <textured_triangle.h>
Public Member Functions | |
class_textured_triangle (void) | |
void | print_info (void) |
~class_textured_triangle (void) | |
class_textured_triangle (class_textured_vertex v0, class_textured_vertex v1, class_textured_vertex v2, float weight=0, int provenience=-1) | |
bool | overlaps (class_textured_triangle *t) |
Public Attributes | |
float | provenience |
class_textured_vertex | v [3] |
float | weight |
Private Member Functions | |
int | lineSegmentIntersection (float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Dx, float Dy, double *X, double *Y) |
public domain function by Darel Rex Finley, 2006. Determines the intersection point of the line segment defined by points A and B with the line segment defined by points C and D. Returns YES if the intersection point was found, and stores that point in X,Y. Returns NO if there is no determinable intersection point, in which case X,Y will be unmodified. | |
int | point_inside_triangle (double x0, double y0, double x1, double y1, double x2, double y2, double px, double py) |
int | test1 (double px, double py, double m, double b, double lx, double ly) |
int | test2 (double px, double py, double m, double b) |
Definition at line 95 of file textured_triangle.h.
class_textured_triangle::class_textured_triangle | ( | void | ) | [inline] |
Definition at line 98 of file textured_triangle.h.
class_textured_triangle::class_textured_triangle | ( | class_textured_vertex | v0, | |
class_textured_vertex | v1, | |||
class_textured_vertex | v2, | |||
float | weight = 0 , |
|||
int | provenience = -1 | |||
) |
Definition at line 47 of file textured_triangle.cpp.
class_textured_triangle::~class_textured_triangle | ( | void | ) | [inline] |
Definition at line 101 of file textured_triangle.h.
int class_textured_triangle::lineSegmentIntersection | ( | float | Ax, | |
float | Ay, | |||
float | Bx, | |||
float | By, | |||
float | Cx, | |||
float | Cy, | |||
float | Dx, | |||
float | Dy, | |||
double * | X, | |||
double * | Y | |||
) | [inline, private] |
public domain function by Darel Rex Finley, 2006. Determines the intersection point of the line segment defined by points A and B with the line segment defined by points C and D. Returns YES if the intersection point was found, and stores that point in X,Y. Returns NO if there is no determinable intersection point, in which case X,Y will be unmodified.
Definition at line 179 of file textured_triangle.h.
bool class_textured_triangle::overlaps | ( | class_textured_triangle * | t | ) |
Definition at line 57 of file textured_triangle.cpp.
int class_textured_triangle::point_inside_triangle | ( | double | x0, | |
double | y0, | |||
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2, | |||
double | px, | |||
double | py | |||
) | [inline, private] |
Definition at line 132 of file textured_triangle.h.
void class_textured_triangle::print_info | ( | void | ) | [inline] |
Definition at line 108 of file textured_triangle.h.
int class_textured_triangle::test1 | ( | double | px, | |
double | py, | |||
double | m, | |||
double | b, | |||
double | lx, | |||
double | ly | |||
) | [inline, private] |
Definition at line 126 of file textured_triangle.h.
int class_textured_triangle::test2 | ( | double | px, | |
double | py, | |||
double | m, | |||
double | b | |||
) | [inline, private] |
Definition at line 116 of file textured_triangle.h.
Definition at line 105 of file textured_triangle.h.
Definition at line 101 of file textured_triangle.h.
Definition at line 104 of file textured_triangle.h.