Class Rotate3DTransform
Non-Affine 3D transformation for rotating a visual around a definable axis
public sealed class Rotate3DTransform : Transform, INotifyPropertyChanged, IMutableTransform, ITransform
- Inheritance
-
Rotate3DTransform
- Implements
- Inherited Members
- Extension Methods
Constructors
Rotate3DTransform()
Initializes a new instance of the Rotate3DTransform class.
public Rotate3DTransform()
Rotate3DTransform(double, double, double, double, double, double, double)
Initializes a new instance of the Rotate3DTransform class.
public Rotate3DTransform(double angleX, double angleY, double angleZ, double centerX, double centerY, double centerZ, double depth)
Parameters
angleX
doubleThe rotation around the X-Axis
angleY
doubleThe rotation around the Y-Axis
angleZ
doubleThe rotation around the Z-Axis
centerX
doubleThe origin of the X-Axis
centerY
doubleThe origin of the Y-Axis
centerZ
doubleThe origin of the Z-Axis
depth
doubleThe depth of the 3D effect
Fields
AngleXProperty
Defines the AngleX property.
public static readonly StyledProperty<double> AngleXProperty
Field Value
AngleYProperty
Defines the AngleY property.
public static readonly StyledProperty<double> AngleYProperty
Field Value
AngleZProperty
Defines the AngleZ property.
public static readonly StyledProperty<double> AngleZProperty
Field Value
CenterXProperty
Defines the CenterX property.
public static readonly StyledProperty<double> CenterXProperty
Field Value
CenterYProperty
Defines the CenterY property.
public static readonly StyledProperty<double> CenterYProperty
Field Value
CenterZProperty
Defines the CenterZ property.
public static readonly StyledProperty<double> CenterZProperty
Field Value
DepthProperty
Defines the Depth property.
public static readonly StyledProperty<double> DepthProperty
Field Value
Properties
AngleX
Sets the rotation around the X-Axis
public double AngleX { get; set; }
Property Value
AngleY
Sets the rotation around the Y-Axis
public double AngleY { get; set; }
Property Value
AngleZ
Sets the rotation around the Z-Axis
public double AngleZ { get; set; }
Property Value
CenterX
Moves the origin the X-Axis rotates around
public double CenterX { get; set; }
Property Value
CenterY
Moves the origin the Y-Axis rotates around
public double CenterY { get; set; }
Property Value
CenterZ
Moves the origin the Z-Axis rotates around
public double CenterZ { get; set; }
Property Value
Depth
Affects the depth of the rotation effect
public double Depth { get; set; }
Property Value
Value
Gets the transform's Matrix.
public override Matrix Value { get; }
Property Value
Methods
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.