C# Class BEPUutilities.RigidTransform

Transform composed of a rotation and translation.
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
Orientation Quaternion
Position Vector3

Public Methods

Method Description
Invert ( RigidTransform &transform, RigidTransform &inverse ) : void

Inverts a rigid transform.

RigidTransform ( Quaternion orienation ) : Microsoft.Xna.Framework

Constructs a new rigid transform.

RigidTransform ( Vector3 position ) : Microsoft.Xna.Framework

Constructs a new rigid transform.

RigidTransform ( Vector3 position, Quaternion orienation ) : Microsoft.Xna.Framework

Constructs a new rigid transform.

Transform ( RigidTransform &a, RigidTransform &b, RigidTransform &combined ) : void

Transforms a rigid transform by another rigid transform.

Transform ( Vector3 &position, RigidTransform &transform, Vector3 &result ) : void

Transforms a position by a rigid transform.

TransformByInverse ( RigidTransform &a, RigidTransform &b, RigidTransform &combinedTransform ) : void

Transforms a rigid transform by another rigid transform's inverse.

TransformByInverse ( Vector3 &position, RigidTransform &transform, Vector3 &result ) : void

Transforms a position by a rigid transform's inverse.

Method Details

Invert() public static method

Inverts a rigid transform.
public static Invert ( RigidTransform &transform, RigidTransform &inverse ) : void
transform RigidTransform Transform to invert.
inverse RigidTransform Inverse of the transform.
return void

RigidTransform() public method

Constructs a new rigid transform.
public RigidTransform ( Quaternion orienation ) : Microsoft.Xna.Framework
orienation Quaternion Rotation component of the transform.
return Microsoft.Xna.Framework

RigidTransform() public method

Constructs a new rigid transform.
public RigidTransform ( Vector3 position ) : Microsoft.Xna.Framework
position Vector3 Translation component of the transform.
return Microsoft.Xna.Framework

RigidTransform() public method

Constructs a new rigid transform.
public RigidTransform ( Vector3 position, Quaternion orienation ) : Microsoft.Xna.Framework
position Vector3 Translation component of the transform.
orienation Quaternion Rotation component of the transform.
return Microsoft.Xna.Framework

Transform() public static method

Transforms a rigid transform by another rigid transform.
public static Transform ( RigidTransform &a, RigidTransform &b, RigidTransform &combined ) : void
a RigidTransform The first, "local" rigid transform.
b RigidTransform The second, "world" rigid transform.
combined RigidTransform Combined rigid transform.
return void

Transform() public static method

Transforms a position by a rigid transform.
public static Transform ( Vector3 &position, RigidTransform &transform, Vector3 &result ) : void
position Vector3 Position to transform.
transform RigidTransform Transform to apply.
result Vector3 Transformed position.
return void

TransformByInverse() public static method

Transforms a rigid transform by another rigid transform's inverse.
public static TransformByInverse ( RigidTransform &a, RigidTransform &b, RigidTransform &combinedTransform ) : void
a RigidTransform The first rigid transform.
b RigidTransform The second rigid transform, to be inverted.
combinedTransform RigidTransform Combined rigid transform.
return void

TransformByInverse() public static method

Transforms a position by a rigid transform's inverse.
public static TransformByInverse ( Vector3 &position, RigidTransform &transform, Vector3 &result ) : void
position Vector3 Position to transform.
transform RigidTransform Transform to invert and apply.
result Vector3 Transformed position.
return void

Property Details

Orientation public_oe property

Rotation component of the transform.
public Quaternion Orientation
return Quaternion

Position public_oe property

Translation component of the transform.
public Vector3 Position
return Vector3