Class TransformRelative
Represents an operator that applies a model matrix transform specifying relative position, rotation and scale to every transform in the sequence.
public class TransformRelative : MatrixTransform
- Inheritance
-
TransformRelative
- Inherited Members
Constructors
TransformRelative()
Initializes a new instance of the TransformRelative class.
public TransformRelative()
Properties
Position
Gets or sets the relative position of the model, in the local coordinate frame.
[TypeConverter(typeof(NumericRecordConverter))]
public Vector3 Position { get; set; }
Property Value
Rotation
Gets or sets the quaternion representing the relative rotation of the model, in the local coordinate frame.
[TypeConverter(typeof(NumericRecordConverter))]
public Quaternion Rotation { get; set; }
Property Value
Scale
Gets or sets the relative scale vector applied to the model, in the local coordinate frame.
[TypeConverter(typeof(NumericRecordConverter))]
public Vector3 Scale { get; set; }
Property Value
Methods
CreateTransform(out Matrix4)
Initializes a transform matrix for applying a model matrix transform specifying relative position, rotation and scale.
protected override void CreateTransform(out Matrix4 result)
Parameters
result
Matrix4When this method returns, contains the relative matrix transform to be combined with each element in the sequence.