Class TRS
Represents a position / rotation and scale.
Much like a Unity Transform, but without the association with a Unity object.
Inheritance
System.Object
TRS
Assembly: Sylves.dll
Syntax
public class TRS : Object
Constructors
TRS()
Declaration
TRS(Matrix4x4)
Declaration
Parameters
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
Properties
Position
Declaration
public Vector3 Position { get; }
Property Value
Rotation
Declaration
public Quaternion Rotation { get; }
Property Value
Scale
Declaration
public Vector3 Scale { get; }
Property Value
Methods
ToMatrix()
Declaration
public Matrix4x4 ToMatrix()
Returns
Operators
Multiply(TRS, TRS)
Declaration
public static TRS operator *(TRS a, TRS b)
Parameters
Type |
Name |
Description |
TRS |
a |
|
TRS |
b |
|
Returns