C# Class NewTOAPIA.Graphics.Transformation

The Transformation class is meant to represent a general transformation in 3D. It will typically be attached to UI elements, both 3D and 2D so they can carry their various world, and local transforms with them.
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
IDentity Transformation

Public Methods

Method Description
ApplyForward ( float3 input ) : float3

Applying the transform takes the input, and multiplies it by the transformation matrix. This operation will return a new output that has the transform applied.

ApplyForward ( int quantity, float3 input, float3 &output ) : void
ApplyInverse ( float3 input ) : float3
ApplyInverse ( int quantity, float3 input, float3 &output ) : void
GetRotate ( ) : float3x3
Inverse ( Transformation &inverse ) : void
InvertVector ( float3 vector ) : float3
MakeIdentity ( ) : void
MakeUnitScale ( ) : void
Product ( Transformation A, Transformation B, Transformation &C ) : void
SetRotate ( float3x3 rotate ) : void
Transformation ( ) : System
Transformation ( Transformation aTrans ) : System
Translate ( float dx, float dy ) : void
Translate ( float2 offset ) : void
Translate ( float3 offset ) : void

Private Methods

Method Description
GetNorm ( ) : float

Method Details

ApplyForward() public method

Applying the transform takes the input, and multiplies it by the transformation matrix. This operation will return a new output that has the transform applied.
public ApplyForward ( float3 input ) : float3
input float3
return float3

ApplyForward() public method

public ApplyForward ( int quantity, float3 input, float3 &output ) : void
quantity int
input float3
output float3
return void

ApplyInverse() public method

public ApplyInverse ( float3 input ) : float3
input float3
return float3

ApplyInverse() public method

public ApplyInverse ( int quantity, float3 input, float3 &output ) : void
quantity int
input float3
output float3
return void

GetRotate() public method

public GetRotate ( ) : float3x3
return float3x3

Inverse() public method

public Inverse ( Transformation &inverse ) : void
inverse Transformation
return void

InvertVector() public method

public InvertVector ( float3 vector ) : float3
vector float3
return float3

MakeIdentity() public method

public MakeIdentity ( ) : void
return void

MakeUnitScale() public method

public MakeUnitScale ( ) : void
return void

Product() public method

public Product ( Transformation A, Transformation B, Transformation &C ) : void
A Transformation
B Transformation
C Transformation
return void

SetRotate() public method

public SetRotate ( float3x3 rotate ) : void
rotate float3x3
return void

Transformation() public method

public Transformation ( ) : System
return System

Transformation() public method

public Transformation ( Transformation aTrans ) : System
aTrans Transformation
return System

Translate() public method

public Translate ( float dx, float dy ) : void
dx float
dy float
return void

Translate() public method

public Translate ( float2 offset ) : void
offset float2
return void

Translate() public method

public Translate ( float3 offset ) : void
offset float3
return void

Property Details

IDentity public static property

public static Transformation,NewTOAPIA.Graphics IDentity
return Transformation