Show / Hide Table of Contents

Class Transform

Transformation (position, orientation and size) of the node.

Inheritance
System.Object
SceneComponent
Transform
Implements
IComponent
Inherited Members
SceneComponent.Name
SceneComponent.Active
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core.Scene
Assembly: Fusee.Engine.Core.dll
Syntax
public class Transform : SceneComponent, IComponent

Constructors

Transform()

Creates a Transform component

Declaration
public Transform()

Transform(float3, float3, float3)

Creates a Transform component

Declaration
public Transform(float3 translation, float3 rotation, float3 scale)
Parameters
Type Name Description
float3 translation
float3 rotation
float3 scale

Transform(float3, QuaternionF, float3)

Creates a Transform component

Declaration
public Transform(float3 translation, QuaternionF rotation, float3 scale)
Parameters
Type Name Description
float3 translation
QuaternionF rotation
float3 scale

Transform(float4x4, float4x4, float4x4)

Creates a Transform component

Declaration
public Transform(float4x4 translation, float4x4 rotation, float4x4 scale)
Parameters
Type Name Description
float4x4 translation
float4x4 rotation
float4x4 scale

Properties

Matrix

The matrix (position, rotation, scale) of the node.

Declaration
public float4x4 Matrix { get; set; }
Property Value
Type Description
float4x4

Rotation

The rotation (orientation) of the node. Rotation is in euler angles as radiant. Rotation order is ZXY.

Declaration
public float3 Rotation { get; set; }
Property Value
Type Description
float3

RotationMatrix

The rotation (orientation) of the node.

Declaration
public float4x4 RotationMatrix { get; set; }
Property Value
Type Description
float4x4

RotationQuaternion

The rotation (orientation) of the node.

Declaration
public QuaternionF RotationQuaternion { get; set; }
Property Value
Type Description
QuaternionF

Scale

The scale (size) of the node.

Declaration
public float3 Scale { get; set; }
Property Value
Type Description
float3

ScaleMatrix

The scale (size) of the node.

Declaration
public float4x4 ScaleMatrix { get; set; }
Property Value
Type Description
float4x4

Translation

The translation (position) of the node.

Declaration
public float3 Translation { get; set; }
Property Value
Type Description
float3

TranslationMatrix

The translation (position) of the node.

Declaration
public float4x4 TranslationMatrix { get; set; }
Property Value
Type Description
float4x4

Implements

IComponent

Extension Methods

SceneExtensions.GetLocalTransformation(Transform)
SceneExtensions.GetLocalTranslation(Transform)
SceneExtensions.Translate(Transform, float3)
SceneExtensions.Translate(Transform, float4x4)
SceneExtensions.Rotate(Transform, float3)
SceneExtensions.Rotate(Transform, QuaternionF)
SceneExtensions.RotateAround(Transform, float3, float3)
SceneExtensions.Rotate(Transform, float4x4)
SceneExtensions.RotateGlobal(Transform, QuaternionF, QuaternionF)
SceneExtensions.FpsView(Transform, Single, Single, Single, Single, Single)

See Also

SceneComponent
Generated by DocFX
GitHub Repo
Back to top