SpriteManager 2
 All Classes Functions Variables Enumerations Enumerator Properties
Rect3D Struct Reference

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...
 

Detailed Description

Represents a 2D rect that exists in 3D space and is not axis-aligned.

Definition at line 469 of file SpriteRoot.cs.

Constructor & Destructor Documentation

Rect3D.Rect3D ( Vector3  tl,
Vector3  tr,
Vector3  bl 
)

Constructs a new 3D rectangle from three points which must form a right-triangle.

Parameters
tlThe top-left point
trThe top-right point
blThe bottom-left point

Definition at line 527 of file SpriteRoot.cs.

Rect3D.Rect3D ( Rect  r)

Constructs a new 3D rectangle from a standard Rect.

Parameters
rA Rect upon which the 3D rect will be based.

Definition at line 542 of file SpriteRoot.cs.

Member Function Documentation

void Rect3D.FromPoints ( Vector3  tl,
Vector3  tr,
Vector3  bl 
)

Defines a 3D rectangle from three points which must form a right-triangle.

Parameters
tlThe top-left point
trThe top-right point
blThe bottom-left point

Definition at line 510 of file SpriteRoot.cs.

void Rect3D.FromRect ( Rect  r)

Defines a Rect3D from a standard Rect.

Parameters
rThe 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.

Returns
A new Rect based upon the X,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.

Parameters
matrixThe matrix by which the points shall be transformed.

Definition at line 579 of file SpriteRoot.cs.

static Rect3D Rect3D.MultFast ( Rect3D  rect,
Matrix4x4  matrix 
)
static

Multiplies the points in the specified Rect3D by the specified matrix in a non-projective way and returns the result.

Parameters
rectThe Rect3D to be transformed.
matrixThe matrix by which the points shall be transformed.

Definition at line 598 of file SpriteRoot.cs.


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