Defines a 3d triangleVertexes. Each edge goes from the origin. Cross(edge0, edge1) gives the triangleVertexes normal.
More...
|
| MyTriangle (Vector3 pt0, Vector3 pt1, Vector3 pt2) |
| Points specified so that pt1-pt0 is edge0 and p2-pt0 is edge1 More...
|
|
| MyTriangle (ref Vector3 pt0, ref Vector3 pt1, ref Vector3 pt2) |
| Points specified so that pt1-pt0 is edge0 and p2-pt0 is edge1 More...
|
|
Vector3 | GetPoint (int i) |
| Same numbering as in the constructor More...
|
|
void | GetPoint (int i, out Vector3 point) |
| Same numbering as in the constructor More...
|
|
void | GetPoint (ref Vector3 point, int i) |
|
Vector3 | GetPoint (float t0, float t1) |
| Returns the point parameterised by t0 and t1 More...
|
|
void | GetSpan (out float min, out float max, Vector3 axis) |
| Gets the minimum and maximum extents of the triangleVertexes along the axis More...
|
|
void | GetSpan (out float min, out float max, ref Vector3 axis) |
| Gets the minimum and maximum extents of the triangle along the axis More...
|
|
Defines a 3d triangleVertexes. Each edge goes from the origin. Cross(edge0, edge1) gives the triangleVertexes normal.
Definition at line 14 of file MyTriangle.cs.
Points specified so that pt1-pt0 is edge0 and p2-pt0 is edge1
- Parameters
-
Definition at line 26 of file MyTriangle.cs.
Points specified so that pt1-pt0 is edge0 and p2-pt0 is edge1
- Parameters
-
Definition at line 39 of file MyTriangle.cs.
Vector3 Sandbox.Engine.Utils.MyTriangle.GetPoint |
( |
int |
i | ) |
|
|
inline |
Same numbering as in the constructor
- Parameters
-
- Returns
Definition at line 51 of file MyTriangle.cs.
void Sandbox.Engine.Utils.MyTriangle.GetPoint |
( |
int |
i, |
|
|
out Vector3 |
point |
|
) |
| |
|
inline |
Same numbering as in the constructor
- Parameters
-
- Returns
Definition at line 68 of file MyTriangle.cs.
void Sandbox.Engine.Utils.MyTriangle.GetPoint |
( |
ref Vector3 |
point, |
|
|
int |
i |
|
) |
| |
|
inline |
Same numbering as in the constructor
- Parameters
-
- Returns
Definition at line 84 of file MyTriangle.cs.
Vector3 Sandbox.Engine.Utils.MyTriangle.GetPoint |
( |
float |
t0, |
|
|
float |
t1 |
|
) |
| |
|
inline |
Returns the point parameterised by t0 and t1
- Parameters
-
- Returns
Definition at line 112 of file MyTriangle.cs.
void Sandbox.Engine.Utils.MyTriangle.GetSpan |
( |
out float |
min, |
|
|
out float |
max, |
|
|
Vector3 |
axis |
|
) |
| |
|
inline |
Gets the minimum and maximum extents of the triangleVertexes along the axis
- Parameters
-
Definition at line 123 of file MyTriangle.cs.
void Sandbox.Engine.Utils.MyTriangle.GetSpan |
( |
out float |
min, |
|
|
out float |
max, |
|
|
ref Vector3 |
axis |
|
) |
| |
|
inline |
Gets the minimum and maximum extents of the triangle along the axis
- Parameters
-
Definition at line 140 of file MyTriangle.cs.
Vector3 Sandbox.Engine.Utils.MyTriangle.Centre |
|
get |
Vector3 Sandbox.Engine.Utils.MyTriangle.Edge0 |
|
getset |
Vector3 Sandbox.Engine.Utils.MyTriangle.Edge1 |
|
getset |
Vector3 Sandbox.Engine.Utils.MyTriangle.Edge2 |
|
get |
Vector3 Sandbox.Engine.Utils.MyTriangle.Normal |
|
get |
Gets the triangleVertexes normal. If degenerate it will be normalised, but the direction may be wrong!
Definition at line 203 of file MyTriangle.cs.
Vector3 Sandbox.Engine.Utils.MyTriangle.Origin |
|
getset |
Gets the plane containing the triangleVertexes
Definition at line 191 of file MyTriangle.cs.
The documentation for this struct was generated from the following file: