Powertek.OpenGl.PtMath3d Struct Reference

PtMath3d. More...

List of all members.

Static Public Member Functions

static void RotateX3 (ref Vertex3f v, float angle)
static void RotateY3 (ref Vertex3f v, float angle)
static void RotateZ3 (ref Vertex3f v, float angle)
static float DotProduct (ref Vertex3f v1, ref Vertex3f v2)
static float DotProduct (Vertex3f v1, Vertex3f v2)
static void Subtract (ref Vertex3f v1, ref Vertex3f v2, out Vertex3f v)
static void CrossProduct (ref Vertex3f v1, ref Vertex3f v2, out Vertex3f v)
static Vertex3f CrossProduct (ref Vertex3f v1, ref Vertex3f v2)
static Vertex3f CrossProduct (Vertex3f v1, Vertex3f v2)
static void Normalize (ref Vertex3f v)
static void MatrixRotateX4 (ref float[] m, float angle)
static void MatrixRotateY4 (ref float[] m, float angle)
static void SetMatrixIdentity (ref float[] m)
static void MatrixInvert (ref float[] m)
static float[] GetInverseMatrix (float[] m)
static Vertex3f MatrixTransform (ref float[] m, Vertex3f v)
static void MatrixMult4f (ref float[] resMatrix, ref float[] m2)
static void MatrixMult (ref float[] matrix, ref Vertex4f v, out Vertex4f resVertex)
static void CalcFaceNormal (ref Vertex3f vertex1, ref Vertex3f vertex2, ref Vertex3f vertex3, out Vertex3f faceNormal)
static Vertex3f CalcFaceNormal (ref Vertex3f vertex1, ref Vertex3f vertex2, ref Vertex3f vertex3)
static Vertex3f Min (Vertex3f v1, Vertex3f v2)
static Vertex3f Max (Vertex3f v1, Vertex3f v2)
static float Max (float v1, float v2)
static float Min (float v1, float v2)
static Vertex3f MinGL (ref Vertex3f v1, ref Vertex3f v2)
static Vertex3f MaxGL (ref Vertex3f v1, ref Vertex3f v2)
static float Mix (float v1, float v2, float amount)
static float Mix (ref float v1, ref float v2, ref float amount)
static Vertex3f Mix (ref Vertex3f v1, ref Vertex3f v2, float amount)
static Vertex3f Mix (ref Vertex3f v1, ref Vertex3f v2, ref Vertex3f amount, bool swapAmount)
static Vertex3f Mix (Vertex3f v1, Vertex3f v2, Vertex3f amount)
static Vertex3f Mix (Vertex3f v1, Vertex3f v2, float amount)

Static Public Attributes

static double HalfPI = 1.57079632679489661923
static double TwoPI = 6.2831853071795864769
static double InvTwoPI = 0.1591549430918953358
static double InvPI = 0.3183098861837906715


Detailed Description


Member Function Documentation

static Vertex3f Powertek.OpenGl.PtMath3d.CalcFaceNormal ( ref Vertex3f  vertex1,
ref Vertex3f  vertex2,
ref Vertex3f  vertex3 
) [static]

Calculate FaceNormal.

Parameters:
vertex1 
vertex2 
vertex3 
Returns:

static void Powertek.OpenGl.PtMath3d.CalcFaceNormal ( ref Vertex3f  vertex1,
ref Vertex3f  vertex2,
ref Vertex3f  vertex3,
out Vertex3f  faceNormal 
) [static]

Calculate FaceNormal.

Parameters:
vertex1 
vertex2 
vertex3 
faceNormal 

static Vertex3f Powertek.OpenGl.PtMath3d.CrossProduct ( Vertex3f  v1,
Vertex3f  v2 
) [static]

CrossProduct.

Parameters:
v1 
v2 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.CrossProduct ( ref Vertex3f  v1,
ref Vertex3f  v2 
) [static]

CrossProduct.

Parameters:
v1 
v2 
Returns:

static void Powertek.OpenGl.PtMath3d.CrossProduct ( ref Vertex3f  v1,
ref Vertex3f  v2,
out Vertex3f  v 
) [static]

CrossProduct.

Parameters:
v1 
v2 
v 

static float Powertek.OpenGl.PtMath3d.DotProduct ( Vertex3f  v1,
Vertex3f  v2 
) [static]

DotProduct.

Parameters:
v1 
v2 
Returns:

static float Powertek.OpenGl.PtMath3d.DotProduct ( ref Vertex3f  v1,
ref Vertex3f  v2 
) [static]

DotProduct.

Parameters:
v1 
v2 
Returns:

static float [] Powertek.OpenGl.PtMath3d.GetInverseMatrix ( float[]  m  )  [static]

GetInverseMatrix.

Parameters:
m 
Returns:

static void Powertek.OpenGl.PtMath3d.MatrixInvert ( ref float[]  m  )  [static]

Get Inverse of the Matrix, 2nd Version, this wont work for shadowmapping.

Parameters:
m 

static void Powertek.OpenGl.PtMath3d.MatrixMult ( ref float[]  matrix,
ref Vertex4f  v,
out Vertex4f  resVertex 
) [static]

MatrixMult.

Parameters:
matrix 
v 
resVertex 

static void Powertek.OpenGl.PtMath3d.MatrixMult4f ( ref float[]  resMatrix,
ref float[]  m2 
) [static]

Matrix Multiply.

Parameters:
resMatrix 
m2 

static void Powertek.OpenGl.PtMath3d.MatrixRotateX4 ( ref float[]  m,
float  angle 
) [static]

MatrixRotateX4.

Parameters:
m 
angle 

static void Powertek.OpenGl.PtMath3d.MatrixRotateY4 ( ref float[]  m,
float  angle 
) [static]

MatrixRotateY4.

Parameters:
m 
angle 

static Vertex3f Powertek.OpenGl.PtMath3d.MatrixTransform ( ref float[]  m,
Vertex3f  v 
) [static]

Transform the Matrix.

Parameters:
m 
v 
Returns:

static float Powertek.OpenGl.PtMath3d.Max ( float  v1,
float  v2 
) [static]

Return the max of two floats.

Parameters:
v1 
v2 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.Max ( Vertex3f  v1,
Vertex3f  v2 
) [static]

Return the max combination of two vertices.

Parameters:
v1 
v2 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.MaxGL ( ref Vertex3f  v1,
ref Vertex3f  v2 
) [static]

Return the max of two OpenGl Vertices (-Z).

Parameters:
v1 
v2 
Returns:

static float Powertek.OpenGl.PtMath3d.Min ( float  v1,
float  v2 
) [static]

Return the min of two floats.

Parameters:
v1 
v2 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.Min ( Vertex3f  v1,
Vertex3f  v2 
) [static]

Return the min combination of two vertices.

Parameters:
v1 
v2 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.MinGL ( ref Vertex3f  v1,
ref Vertex3f  v2 
) [static]

Return the min of two OpenGl Vertices (-Z).

Parameters:
v1 
v2 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.Mix ( Vertex3f  v1,
Vertex3f  v2,
float  amount 
) [static]

linear mix of two vertices

Parameters:
v1 
v2 
amount range 0..1
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.Mix ( Vertex3f  v1,
Vertex3f  v2,
Vertex3f  amount 
) [static]

linear mix of two vertices

Parameters:
v1 
v2 
amount range 0..1
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.Mix ( ref Vertex3f  v1,
ref Vertex3f  v2,
ref Vertex3f  amount,
bool  swapAmount 
) [static]

linear mix of two vertices

Parameters:
v1 
v2 
amount 0..1
swapAmount 
Returns:

static Vertex3f Powertek.OpenGl.PtMath3d.Mix ( ref Vertex3f  v1,
ref Vertex3f  v2,
float  amount 
) [static]

linear mix of two vertices

Parameters:
v1 
v2 
amount range 0..1
Returns:

static float Powertek.OpenGl.PtMath3d.Mix ( ref float  v1,
ref float  v2,
ref float  amount 
) [static]

linear mix of two floats

Parameters:
v1 
v2 
amount range 0..1
Returns:

static float Powertek.OpenGl.PtMath3d.Mix ( float  v1,
float  v2,
float  amount 
) [static]

linear mix of two floats

Parameters:
v1 
v2 
amount range 0..1
Returns:

static void Powertek.OpenGl.PtMath3d.Normalize ( ref Vertex3f  v  )  [static]

Normalize.

Parameters:
v 

static void Powertek.OpenGl.PtMath3d.RotateX3 ( ref Vertex3f  v,
float  angle 
) [static]

Vector RotateX3.

Parameters:
v 
angle 

static void Powertek.OpenGl.PtMath3d.RotateY3 ( ref Vertex3f  v,
float  angle 
) [static]

Vector RotateY3.

Parameters:
v 
angle 

static void Powertek.OpenGl.PtMath3d.RotateZ3 ( ref Vertex3f  v,
float  angle 
) [static]

Vector RotateZ3.

Parameters:
v 
angle 

static void Powertek.OpenGl.PtMath3d.SetMatrixIdentity ( ref float[]  m  )  [static]

Set Identity Matrix.

Parameters:
m 

static void Powertek.OpenGl.PtMath3d.Subtract ( ref Vertex3f  v1,
ref Vertex3f  v2,
out Vertex3f  v 
) [static]

Subtract.

Parameters:
v1 
v2 
v 


Member Data Documentation

double Powertek.OpenGl.PtMath3d.HalfPI = 1.57079632679489661923 [static]

HalfPI.

double Powertek.OpenGl.PtMath3d.InvPI = 0.3183098861837906715 [static]

InvPI.

double Powertek.OpenGl.PtMath3d.InvTwoPI = 0.1591549430918953358 [static]

InvTwoPI.

double Powertek.OpenGl.PtMath3d.TwoPI = 6.2831853071795864769 [static]

TwoPI.


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

Generated on Thu Nov 20 04:46:32 2008 for Powertek.OpenGl, 2.0.6.64 by  doxygen 1.5.7.1