Public Member Functions | |
Triangle (Vec3 p1, Vec3 p2, Vec3 p3) | |
Constructors First point Seconde point Third point. | |
Triangle ( local p1, local p2, local p3) | |
Constructors First point Seconde point Third point. | |
bool | getInsterctPoint (const Ray &ray, Vec3 &interScetPoint) const |
Get intersection point Ray using to intersect with triangle intersect point when exist True if intersection point exist, false otherwise. | |
void | transform (Mat4 matrix) |
Transform the triangle. More... | |
Public Attributes | |
Vec3 | _p1 |
three points of triangle | |
void transform | ( | Mat4 | matrix | ) |
Transform the triangle.
Matrix used to transform the triangle.
var transform | ( | var | matrix | ) |
Transform the triangle.
Matrix used to transform the triangle.
local transform | ( | local | matrix | ) |
Transform the triangle.
Matrix used to transform the triangle.