C# Class DeveloperConsole.Rectangle3D

Represents a 3D Rectangle
Mostra file Open project: Dakota628/GTAVDeveloperConsole

Public Methods

Method Description
Draw ( Color c ) : Rectangle3D

Draw all the rectangle

DrawDebug ( Color c ) : Rectangle3D

Draw a 2D overlay of the 3D rectangle debug

DrawWireFrame ( Color c ) : Rectangle3D

Draw the rectangles wireframe without diagonals

DrawWireFrame ( Color c, bool diagonals ) : Rectangle3D

Draw the rectangles wireframe

Rectangle3D ( Vector3 pos, Vector3 size ) : System

Create a Rectangle3D

Rotate ( GTA.Math.Quaternion rot ) : Rectangle3D

Rotate the rectangle by a quaternion

Private Methods

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

Method Details

Draw() public method

Draw all the rectangle
public Draw ( Color c ) : Rectangle3D
c Color The color of the rectangle
return Rectangle3D

DrawDebug() public method

Draw a 2D overlay of the 3D rectangle debug
public DrawDebug ( Color c ) : Rectangle3D
c Color The color of the debug overlay
return Rectangle3D

DrawWireFrame() public method

Draw the rectangles wireframe without diagonals
public DrawWireFrame ( Color c ) : Rectangle3D
c Color The color of the wire frame
return Rectangle3D

DrawWireFrame() public method

Draw the rectangles wireframe
public DrawWireFrame ( Color c, bool diagonals ) : Rectangle3D
c Color The color of the wireframe
diagonals bool Whether or not to draw diagonals
return Rectangle3D

Rectangle3D() public method

Create a Rectangle3D
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

Rotate() public method

Rotate the rectangle by a quaternion
public Rotate ( GTA.Math.Quaternion rot ) : Rectangle3D
rot GTA.Math.Quaternion The quaternion to rotate by
return Rectangle3D