Method | Description | |
---|---|---|
Draw ( Color c ) : |
Draw all the rectangle
|
|
DrawDebug ( Color c ) : |
Draw a 2D overlay of the 3D rectangle debug
|
|
DrawWireFrame ( Color c ) : |
Draw the rectangles wireframe without diagonals
|
|
DrawWireFrame ( Color c, bool diagonals ) : |
Draw the rectangles wireframe
|
|
Rectangle3D ( Vector3 pos, Vector3 size ) : System |
Create a Rectangle3D
|
|
Rotate ( GTA.Math.Quaternion rot ) : |
Rotate the rectangle by a quaternion
|
Method | Description | |
---|---|---|
GenerateEdges ( ) : void |
Generate the edges of the rectangle, should be called when modifying corners
|
|
GenerateFaces ( ) : void |
Generate the faces of the rectangl, should be called when modifying corners
|
|
ToPoint3D ( Vector3 v ) : System.Windows.Media.Media3D.Point3D |
Converts a Vector3 to a Point3D
|
|
ToVector3 ( System.Windows.Media.Media3D.Point3D p ) : Vector3 |
Converts a Point3D to a Vector3
|
public Draw ( Color c ) : |
||
c | Color | The color of the rectangle |
return |
public DrawDebug ( Color c ) : |
||
c | Color | The color of the debug overlay |
return |
public DrawWireFrame ( Color c ) : |
||
c | Color | The color of the wire frame |
return |
public DrawWireFrame ( Color c, bool diagonals ) : |
||
c | Color | The color of the wireframe |
diagonals | bool | Whether or not to draw diagonals |
return |
public Rectangle3D ( Vector3 pos, Vector3 size ) : System | ||
pos | Vector3 | The bottom left front position of the rectangle |
size | Vector3 | The size of the rectangle |
return | System |
public Rotate ( GTA.Math.Quaternion rot ) : |
||
rot | GTA.Math.Quaternion | The quaternion to rotate by |
return |