Show / Hide Table of Contents

Class TRS

Rerpresents a position / rotation and scale. Much like a Transform, but without the association with a unity object.

Inheritance
Object
TRS
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public class TRS

Constructors

TRS(Matrix4x4)

Declaration
public TRS(Matrix4x4 m)
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
Type Description
Vector3

Rotation

Declaration
public Quaternion Rotation { get; }
Property Value
Type Description
Quaternion

Scale

Declaration
public Vector3 Scale { get; }
Property Value
Type Description
Vector3

Methods

Local(Transform)

Declaration
public static TRS Local(Transform t)
Parameters
Type Name Description
Transform t
Returns
Type Description
TRS

ToMatrix()

Declaration
public Matrix4x4 ToMatrix()
Returns
Type Description
Matrix4x4

World(Transform)

Declaration
public static TRS World(Transform t)
Parameters
Type Name Description
Transform t
Returns
Type Description
TRS

Operators

Multiply(TRS, TRS)

Declaration
public static TRS operator *(TRS a, TRS b)
Parameters
Type Name Description
TRS a
TRS b
Returns
Type Description
TRS
Back to top Generated by DocFX