Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
KclLibrary.Triangle Class Reference

Represents a polygon in 3-dimensional space, defined by 3 vertices storing their positions. More...

Public Member Functions

 Triangle ()
 Initializes a new instance of the Triangle class.
 
 Triangle (Vector3 vertexA, Vector3 vertexB, Vector3 vertexC)
 Initializes a new instance of the Triangle class.
 
bool IsRayInTriangle (Vector3 ray, Vector3 cameraEye, Matrix4x4 collisionMatrix)
 
Vector3 GetTriangleCenter ()
 Gets the center of the current triangle and returns the point.
 

Public Attributes

Vector3[] Vertices
 Gets the vertices which store the corner positions of the triangle.
 

Properties

Vector3 Normal [get]
 Gets the face normal of this triangle.
 
ushort Attribute [get, set]
 The attribute used by a KCLPrisim for handling material flags.
 

Detailed Description

Represents a polygon in 3-dimensional space, defined by 3 vertices storing their positions.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

KclLibrary.Triangle.Triangle ( )

Initializes a new instance of the Triangle class.

◆ Triangle() [2/2]

KclLibrary.Triangle.Triangle ( Vector3 vertexA,
Vector3 vertexB,
Vector3 vertexC )

Initializes a new instance of the Triangle class.

Member Function Documentation

◆ GetTriangleCenter()

Vector3 KclLibrary.Triangle.GetTriangleCenter ( )

Gets the center of the current triangle and returns the point.

◆ IsRayInTriangle()

bool KclLibrary.Triangle.IsRayInTriangle ( Vector3 ray,
Vector3 cameraEye,
Matrix4x4 collisionMatrix )

Member Data Documentation

◆ Vertices

Vector3 [] KclLibrary.Triangle.Vertices

Gets the vertices which store the corner positions of the triangle.

Property Documentation

◆ Attribute

ushort KclLibrary.Triangle.Attribute
getset

The attribute used by a KCLPrisim for handling material flags.

◆ Normal

Vector3 KclLibrary.Triangle.Normal
get

Gets the face normal of this triangle.


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