Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Utilities.vxGeometryHelper Class Reference

Collection of Statix Methods which provide helpful Gemoetry Functions. More...

Static Public Member Functions

static BoundingSphere GetModelBoundingSphere (Model model)
 
static BoundingBox GetModelBoundingBox (Model model)
 Gets the model bounding box.
 
static BoundingBox GetModelBoundingBox (Model model, Matrix worldTransform)
 Updates a Bounding Box based off of Model Data.
 
static int GetModelPrimitiveCount (Model model)
 Gets the Primitive Count for a given Model.
 
static Vector3 RotatePoint (Matrix InitialMatrix, Vector3 OffsetFromPosition)
 Rotate a Point by a speciefied Matrix.
 
static Matrix GetRotatedMatrix (Vector3 InitialPosition, Vector3 OffsetFromPosition, Vector3 Rotation_Local, Vector3 Rotation_Global)
 Returns a Matrix which is rotated first about the origin, then translated and rotated about another axis.
 
static Matrix GetRotatedMatrix (Matrix InitialMatrix, Vector3 OffsetFromPosition, Vector3 Rotation_Local)
 Gets the rotated matrix.
 
static Ray CalculateCursorRay (Matrix projectionMatrix, Matrix viewMatrix)
 Calculates the cursor ray.
 
static BoundingBox TransformBoundingBox (BoundingBox boundingBox, Matrix m)
 Transforms the bounding box.
 
static IEnumerable< Vector3 > splitFrustum (float near, float far, Matrix m)
 Splits a Camera frustum.
 
static IEnumerable< float > practicalSplitScheme (int numSplits, float n, float f)
 Sets up the Split Scheme for Cascade Shadow Mapping.
 
static float[] determineShadowMinMax1D (IEnumerable< float > values, float cam, float desiredSize)
 Determines the shadow minimum max1 d.
 
static IEnumerable< VertexPositionColorTexture > fullscreenQuad (Color color, float depth)
 Fullscreens the quad.
 
static IEnumerable< Vector2 > poissonKernel ()
 Poissons the kernel.
 
static IEnumerable< Vector3 > cubeTriangleList (Vector3[] cubeCorners)
 Cubes the triangle list.
 
static IEnumerable< Vector4 > normalizedGridVertices (int width, int height)
 Normalizeds the grid vertices.
 

Detailed Description

Collection of Statix Methods which provide helpful Gemoetry Functions.

Member Function Documentation

◆ CalculateCursorRay()

static Ray VerticesEngine.Utilities.vxGeometryHelper.CalculateCursorRay ( Matrix projectionMatrix,
Matrix viewMatrix )
static

Calculates the cursor ray.

Returns
The cursor ray.
Parameters
projectionMatrixProjection matrix.
viewMatrixView matrix.

◆ cubeTriangleList()

static IEnumerable< Vector3 > VerticesEngine.Utilities.vxGeometryHelper.cubeTriangleList ( Vector3[] cubeCorners)
static

Cubes the triangle list.

Returns
The triangle list.
Parameters
cubeCornersCube corners.

◆ determineShadowMinMax1D()

static float[] VerticesEngine.Utilities.vxGeometryHelper.determineShadowMinMax1D ( IEnumerable< float > values,
float cam,
float desiredSize )
static

Determines the shadow minimum max1 d.

Returns
The shadow minimum max1 d.
Parameters
valuesValues.
camCam.
desiredSizeDesired size.

◆ fullscreenQuad()

static IEnumerable< VertexPositionColorTexture > VerticesEngine.Utilities.vxGeometryHelper.fullscreenQuad ( Color color,
float depth )
static

Fullscreens the quad.

Returns
The quad.
Parameters
colorColor.
depthDepth.

◆ GetModelBoundingBox() [1/2]

static BoundingBox VerticesEngine.Utilities.vxGeometryHelper.GetModelBoundingBox ( Model model)
static

Gets the model bounding box.

Returns
The model bounding box.
Parameters
modelModel.

◆ GetModelBoundingBox() [2/2]

static BoundingBox VerticesEngine.Utilities.vxGeometryHelper.GetModelBoundingBox ( Model model,
Matrix worldTransform )
static

Updates a Bounding Box based off of Model Data.

Parameters
model
worldTransform
Returns

◆ GetModelPrimitiveCount()

static int VerticesEngine.Utilities.vxGeometryHelper.GetModelPrimitiveCount ( Model model)
static

Gets the Primitive Count for a given Model.

Parameters
modelModel to retrieve the primitive count from.
Returns
The Model Primitive Count.

◆ GetRotatedMatrix() [1/2]

static Matrix VerticesEngine.Utilities.vxGeometryHelper.GetRotatedMatrix ( Matrix InitialMatrix,
Vector3 OffsetFromPosition,
Vector3 Rotation_Local )
static

Gets the rotated matrix.

Returns
The rotated matrix.
Parameters
InitialMatrixInitial matrix.
OffsetFromPositionOffset from position.
Rotation_LocalRotation local.

◆ GetRotatedMatrix() [2/2]

static Matrix VerticesEngine.Utilities.vxGeometryHelper.GetRotatedMatrix ( Vector3 InitialPosition,
Vector3 OffsetFromPosition,
Vector3 Rotation_Local,
Vector3 Rotation_Global )
static

Returns a Matrix which is rotated first about the origin, then translated and rotated about another axis.

Parameters
InitialPosition
OffsetFromPosition
Rotation_Local
Rotation_Global
Returns

◆ normalizedGridVertices()

static IEnumerable< Vector4 > VerticesEngine.Utilities.vxGeometryHelper.normalizedGridVertices ( int width,
int height )
static

Normalizeds the grid vertices.

Returns
The grid vertices.
Parameters
widthWidth.
heightHeight.

◆ poissonKernel()

static IEnumerable< Vector2 > VerticesEngine.Utilities.vxGeometryHelper.poissonKernel ( )
static

Poissons the kernel.

Returns
The kernel.

◆ practicalSplitScheme()

static IEnumerable< float > VerticesEngine.Utilities.vxGeometryHelper.practicalSplitScheme ( int numSplits,
float n,
float f )
static

Sets up the Split Scheme for Cascade Shadow Mapping.

Returns
The split scheme.
Parameters
numSplitsNumber splits.
nN.
fF.

◆ RotatePoint()

static Vector3 VerticesEngine.Utilities.vxGeometryHelper.RotatePoint ( Matrix InitialMatrix,
Vector3 OffsetFromPosition )
static

Rotate a Point by a speciefied Matrix.

Returns
The point.
Parameters
InitialMatrixInitial matrix.
OffsetFromPositionOffset from position.

◆ splitFrustum()

static IEnumerable< Vector3 > VerticesEngine.Utilities.vxGeometryHelper.splitFrustum ( float near,
float far,
Matrix m )
static

Splits a Camera frustum.

Returns
The frustum.
Parameters
nearNear.
farFar.
mM.

◆ TransformBoundingBox()

static BoundingBox VerticesEngine.Utilities.vxGeometryHelper.TransformBoundingBox ( BoundingBox boundingBox,
Matrix m )
static

Transforms the bounding box.

Returns
The bounding box.
Parameters
boundingBoxBounding box.
mM.

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