C# Class BEPUutilities.AffineTransform

A transformation composed of a linear transformation and a translation.
显示文件 Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
LinearTransform Matrix3x3
Translation Vector3

Public Methods

Method Description
AffineTransform ( Matrix3x3 linearTransform, Vector3 translation ) : Microsoft.Xna.Framework

Constructs a new affine transform.

AffineTransform ( Quaternion orientation, Vector3 translation ) : Microsoft.Xna.Framework

Constructs a new affine tranform.

AffineTransform ( Vector3 translation ) : Microsoft.Xna.Framework

Constructs a new affine transform.

AffineTransform ( Vector3 scaling, Quaternion orientation, Vector3 translation ) : Microsoft.Xna.Framework

Constructs a new affine transform.

CreateFromRigidTransform ( RigidTransform rigid ) : AffineTransform

Creates an affine transform from a rigid transform.

CreateFromRigidTransform ( RigidTransform &rigid, AffineTransform &affine ) : void

Creates an affine transform from a rigid transform.

Invert ( AffineTransform &transform, AffineTransform &inverse ) : void

Inverts an affine transform.

Multiply ( AffineTransform &a, AffineTransform &b, AffineTransform &transform ) : void

Multiplies a transform by another transform.

Multiply ( RigidTransform &a, AffineTransform &b, AffineTransform &transform ) : void

Multiplies a rigid transform by an affine transform.

Transform ( Vector3 position, AffineTransform affineTransform ) : Vector3

Transforms a vector using an affine transform.

Transform ( Vector3 &position, AffineTransform &transform, Vector3 &transformed ) : void

Transforms a vector by an affine transform.

TransformInverse ( Vector3 &position, AffineTransform &transform, Vector3 &transformed ) : void

Transforms a vector by an affine transform's inverse.

Method Details

AffineTransform() public method

Constructs a new affine transform.
public AffineTransform ( Matrix3x3 linearTransform, Vector3 translation ) : Microsoft.Xna.Framework
linearTransform Matrix3x3 The linear transform component.
translation Vector3 Translation component of the transform.
return Microsoft.Xna.Framework

AffineTransform() public method

Constructs a new affine tranform.
public AffineTransform ( Quaternion orientation, Vector3 translation ) : Microsoft.Xna.Framework
orientation Quaternion Orientation to use as the linear transform.
translation Vector3 Translation to use in the transform.
return Microsoft.Xna.Framework

AffineTransform() public method

Constructs a new affine transform.
public AffineTransform ( Vector3 translation ) : Microsoft.Xna.Framework
translation Vector3 Translation to use in the transform.
return Microsoft.Xna.Framework

AffineTransform() public method

Constructs a new affine transform.
public AffineTransform ( Vector3 scaling, Quaternion orientation, Vector3 translation ) : Microsoft.Xna.Framework
scaling Vector3 Scaling to apply in the linear transform.
orientation Quaternion Orientation to apply in the linear transform.
translation Vector3 Translation to apply.
return Microsoft.Xna.Framework

CreateFromRigidTransform() public static method

Creates an affine transform from a rigid transform.
public static CreateFromRigidTransform ( RigidTransform rigid ) : AffineTransform
rigid RigidTransform Rigid transform to base the affine transform on.
return AffineTransform

CreateFromRigidTransform() public static method

Creates an affine transform from a rigid transform.
public static CreateFromRigidTransform ( RigidTransform &rigid, AffineTransform &affine ) : void
rigid RigidTransform Rigid transform to base the affine transform on.
affine AffineTransform Affine transform created from the rigid transform.
return void

Invert() public static method

Inverts an affine transform.
public static Invert ( AffineTransform &transform, AffineTransform &inverse ) : void
transform AffineTransform Transform to invert.
inverse AffineTransform Inverse of the transform.
return void

Multiply() public static method

Multiplies a transform by another transform.
public static Multiply ( AffineTransform &a, AffineTransform &b, AffineTransform &transform ) : void
a AffineTransform First transform.
b AffineTransform Second transform.
transform AffineTransform Combined transform.
return void

Multiply() public static method

Multiplies a rigid transform by an affine transform.
public static Multiply ( RigidTransform &a, AffineTransform &b, AffineTransform &transform ) : void
a RigidTransform Rigid transform.
b AffineTransform Affine transform.
transform AffineTransform Combined transform.
return void

Transform() public static method

Transforms a vector using an affine transform.
public static Transform ( Vector3 position, AffineTransform affineTransform ) : Vector3
position Vector3 Position to transform.
affineTransform AffineTransform Transform to apply.
return Vector3

Transform() public static method

Transforms a vector by an affine transform.
public static Transform ( Vector3 &position, AffineTransform &transform, Vector3 &transformed ) : void
position Vector3 Position to transform.
transform AffineTransform Transform to apply.
transformed Vector3 Transformed position.
return void

TransformInverse() public static method

Transforms a vector by an affine transform's inverse.
public static TransformInverse ( Vector3 &position, AffineTransform &transform, Vector3 &transformed ) : void
position Vector3 Position to transform.
transform AffineTransform Transform to invert and apply.
transformed Vector3 Transformed position.
return void

Property Details

LinearTransform public_oe property

Linear transform in the affine transform.
public Matrix3x3,BEPUutilities LinearTransform
return Matrix3x3

Translation public_oe property

Translation in the affine transform.
public Vector3 Translation
return Vector3