Represents a 2D rect that exists in 3D space and is not axis-aligned. More...
Public Member Functions | |
void | FromPoints (Vector3 tl, Vector3 tr, Vector3 bl) |
Defines a 3D rectangle from three points which must form a right-triangle. More... | |
Rect3D (Vector3 tl, Vector3 tr, Vector3 bl) | |
Constructs a new 3D rectangle from three points which must form a right-triangle. More... | |
Rect3D (Rect r) | |
Constructs a new 3D rectangle from a standard Rect. More... | |
Rect | GetRect () |
Returns a Rect just using the x and y coordinates of the 3D rect. More... | |
void | FromRect (Rect r) |
Defines a Rect3D from a standard Rect. More... | |
void | MultFast (Matrix4x4 matrix) |
Multiplies the points in the Rect3D by the specified matrix in a non-projective way. Alters the contents of the Rect3D. More... | |
Static Public Member Functions | |
static Rect3D | MultFast (Rect3D rect, Matrix4x4 matrix) |
Multiplies the points in the specified Rect3D by the specified matrix in a non-projective way and returns the result. More... | |
Represents a 2D rect that exists in 3D space and is not axis-aligned.
Definition at line 469 of file SpriteRoot.cs.
Rect3D.Rect3D | ( | Vector3 | tl, |
Vector3 | tr, | ||
Vector3 | bl | ||
) |
Constructs a new 3D rectangle from three points which must form a right-triangle.
tl | The top-left point |
tr | The top-right point |
bl | The bottom-left point |
Definition at line 527 of file SpriteRoot.cs.
Rect3D.Rect3D | ( | Rect | r | ) |
Constructs a new 3D rectangle from a standard Rect.
r | A Rect upon which the 3D rect will be based. |
Definition at line 542 of file SpriteRoot.cs.
void Rect3D.FromPoints | ( | Vector3 | tl, |
Vector3 | tr, | ||
Vector3 | bl | ||
) |
Defines a 3D rectangle from three points which must form a right-triangle.
tl | The top-left point |
tr | The top-right point |
bl | The bottom-left point |
Definition at line 510 of file SpriteRoot.cs.
void Rect3D.FromRect | ( | Rect | r | ) |
Defines a Rect3D from a standard Rect.
r | The rect from which to define the 3D rect. |
Definition at line 566 of file SpriteRoot.cs.
Rect Rect3D.GetRect | ( | ) |
Returns a Rect just using the x and y coordinates of the 3D rect.
Definition at line 557 of file SpriteRoot.cs.
void Rect3D.MultFast | ( | Matrix4x4 | matrix | ) |
Multiplies the points in the Rect3D by the specified matrix in a non-projective way. Alters the contents of the Rect3D.
matrix | The matrix by which the points shall be transformed. |
Definition at line 579 of file SpriteRoot.cs.
Multiplies the points in the specified Rect3D by the specified matrix in a non-projective way and returns the result.
rect | The Rect3D to be transformed. |
matrix | The matrix by which the points shall be transformed. |
Definition at line 598 of file SpriteRoot.cs.