Table of Contents

Class Rotate3DTransform

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

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 double

The rotation around the X-Axis

angleY double

The rotation around the Y-Axis

angleZ double

The rotation around the Z-Axis

centerX double

The origin of the X-Axis

centerY double

The origin of the Y-Axis

centerZ double

The origin of the Z-Axis

depth double

The depth of the 3D effect

Fields

AngleXProperty

Defines the AngleX property.

public static readonly StyledProperty<double> AngleXProperty

Field Value

StyledProperty<double>

AngleYProperty

Defines the AngleY property.

public static readonly StyledProperty<double> AngleYProperty

Field Value

StyledProperty<double>

AngleZProperty

Defines the AngleZ property.

public static readonly StyledProperty<double> AngleZProperty

Field Value

StyledProperty<double>

CenterXProperty

Defines the CenterX property.

public static readonly StyledProperty<double> CenterXProperty

Field Value

StyledProperty<double>

CenterYProperty

Defines the CenterY property.

public static readonly StyledProperty<double> CenterYProperty

Field Value

StyledProperty<double>

CenterZProperty

Defines the CenterZ property.

public static readonly StyledProperty<double> CenterZProperty

Field Value

StyledProperty<double>

DepthProperty

Defines the Depth property.

public static readonly StyledProperty<double> DepthProperty

Field Value

StyledProperty<double>

Properties

AngleX

Sets the rotation around the X-Axis

public double AngleX { get; set; }

Property Value

double

AngleY

Sets the rotation around the Y-Axis

public double AngleY { get; set; }

Property Value

double

AngleZ

Sets the rotation around the Z-Axis

public double AngleZ { get; set; }

Property Value

double

CenterX

Moves the origin the X-Axis rotates around

public double CenterX { get; set; }

Property Value

double

CenterY

Moves the origin the Y-Axis rotates around

public double CenterY { get; set; }

Property Value

double

CenterZ

Moves the origin the Z-Axis rotates around

public double CenterZ { get; set; }

Property Value

double

Depth

Affects the depth of the rotation effect

public double Depth { get; set; }

Property Value

double

Value

Gets the transform's Matrix.

public override Matrix Value { get; }

Property Value

Matrix

Methods

OnPropertyChanged(AvaloniaPropertyChangedEventArgs)

Called when a avalonia property changes on the object.

protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)

Parameters

change AvaloniaPropertyChangedEventArgs

The property change details.