Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    TransformTRS Struct

    Namespace: Stride.Rendering
    Assembly: Stride.Rendering.dll

    Stores transformation in a TRS format (Position, Rotation and Scale).

    [DataContract]
    public struct TransformTRS
    Remarks

    It first applies scaling, then rotation, then translation. Rotation is stored in a Quaternion so that animation system can provides smooth rotation interpolations and blending.

    Name Description
    Fields
    Position

    The translation.

    Rotation

    The rotation.

    Scale

    The scaling

    | Improve this Doc View Source

    Fields


    Position

    The translation.

    public Vector3 Position
    Field Value
    Type Description
    Vector3

    Rotation

    The rotation.

    public Quaternion Rotation
    Field Value
    Type Description
    Quaternion

    Scale

    The scaling

    public Vector3 Scale
    Field Value
    Type Description
    Vector3

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation