Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
Terrain::Triangle Struct Reference

Triangle. More...

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
 

Detailed Description

Member Function Documentation

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.


The documentation for this struct was generated from the following file: