Class TRS
Rerpresents a position / rotation and scale.
Much like a Transform, but without the association with a unity object.
Assembly: Tessera.dll
Syntax
Constructors
TRS(Matrix4x4)
Declaration
Parameters
Type |
Name |
Description |
Matrix4x4 |
m |
|
TRS(Vector3)
Declaration
public TRS(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
TRS(Vector3, Quaternion, Vector3)
Declaration
public TRS(Vector3 position, Quaternion rotation, Vector3 scale)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Quaternion |
rotation |
|
Vector3 |
scale |
|
Properties
Position
Declaration
public Vector3 Position { get; }
Property Value
Rotation
Declaration
public Quaternion Rotation { get; }
Property Value
Type |
Description |
Quaternion |
|
Scale
Declaration
public Vector3 Scale { get; }
Property Value
Methods
Declaration
public static TRS Local(Transform t)
Parameters
Type |
Name |
Description |
Transform |
t |
|
Returns
ToMatrix()
Declaration
public Matrix4x4 ToMatrix()
Returns
Type |
Description |
Matrix4x4 |
|
Declaration
public static TRS World(Transform t)
Parameters
Type |
Name |
Description |
Transform |
t |
|
Returns
Operators
operator *(TRS, TRS)
Declaration
public static TRS operator *(TRS a, TRS b)
Parameters
Type |
Name |
Description |
TRS |
a |
|
TRS |
b |
|
Returns