C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IDentity Transformation

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetNorm ( ) : float

Описание методов

ApplyForward() публичный Метод

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
Результат float3

ApplyForward() публичный Метод

public ApplyForward ( int quantity, float3 input, float3 &output ) : void
quantity int
input float3
output float3
Результат void

ApplyInverse() публичный Метод

public ApplyInverse ( float3 input ) : float3
input float3
Результат float3

ApplyInverse() публичный Метод

public ApplyInverse ( int quantity, float3 input, float3 &output ) : void
quantity int
input float3
output float3
Результат void

GetRotate() публичный Метод

public GetRotate ( ) : float3x3
Результат float3x3

Inverse() публичный Метод

public Inverse ( Transformation &inverse ) : void
inverse Transformation
Результат void

InvertVector() публичный Метод

public InvertVector ( float3 vector ) : float3
vector float3
Результат float3

MakeIdentity() публичный Метод

public MakeIdentity ( ) : void
Результат void

MakeUnitScale() публичный Метод

public MakeUnitScale ( ) : void
Результат void

Product() публичный Метод

public Product ( Transformation A, Transformation B, Transformation &C ) : void
A Transformation
B Transformation
C Transformation
Результат void

SetRotate() публичный Метод

public SetRotate ( float3x3 rotate ) : void
rotate float3x3
Результат void

Transformation() публичный Метод

public Transformation ( ) : System
Результат System

Transformation() публичный Метод

public Transformation ( Transformation aTrans ) : System
aTrans Transformation
Результат System

Translate() публичный Метод

public Translate ( float dx, float dy ) : void
dx float
dy float
Результат void

Translate() публичный Метод

public Translate ( float2 offset ) : void
offset float2
Результат void

Translate() публичный Метод

public Translate ( float3 offset ) : void
offset float3
Результат void

Описание свойств

IDentity публичное статическое свойство

public static Transformation,NewTOAPIA.Graphics IDentity
Результат Transformation