SceneTransform Struct
An affine transform: a point (x, y) becomes (A x + C y + E, B x + D y + F).
public readonly struct SceneTransform : IEquatable<SceneTransform>- Implements
Constructors
| Name | Description |
|---|---|
| SceneTransform(double, double, double, double, double, double) | An affine transform: a point (x, y) becomes (A x + C y + E, B x + D y + F). |
SceneTransform(double, double, double, double, double, double)
An affine transform: a point (x, y) becomes (A x + C y + E, B x + D y + F).
Properties
| Name | Description |
|---|---|
| A | The scale along x. |
| B | The skew of y by x. |
| C | The skew of x by y. |
| D | The scale along y. |
| E | The translation along x. |
| F | The translation along y. |
| Identity | Gets the transform that changes nothing. |
| IsTranslation | Gets a value that indicates whether the transform only translates. |
Identity
SceneTransform.csGets the transform that changes nothing.
public static SceneTransform Identity { get; }Property value
IsTranslation
SceneTransform.csMethods
| Name | Description |
|---|---|
| Apply(double, double) | Applies the transform to a point. |
| Deconstruct(double, double, double, double, double, double) | |
| Equals(SceneTransform) | |
| Equals(object) | |
| GetHashCode() | |
| Rotate(double, double, double) | Creates a rotation around a point. |
| ToString() | |
| Translate(double, double) | Creates a translation. |
Apply(double, double)
SceneTransform.csDeconstruct(double, double, double, double, double, double)
Equals overloads
Equals(SceneTransform)
public bool Equals(SceneTransform other)No documentation is available.
Equals(object)
GetHashCode()
Rotate(double, double, double)
SceneTransform.csCreates a rotation around a point.
public static SceneTransform Rotate(double degrees, double centerX = 0d, double centerY = 0d)Parameters
degreesdouble- The angle, in degrees, clockwise.
centerXdouble- The x coordinate of the center of the rotation.
centerYdouble- The y coordinate of the center of the rotation.
Returns
SceneTransform The transform.
ToString()
Translate(double, double)
SceneTransform.csCreates a translation.
public static SceneTransform Translate(double x, double y)Operators
| Name | Description |
|---|---|
| operator ==(SceneTransform, SceneTransform) | |
| operator !=(SceneTransform, SceneTransform) |
operator ==(SceneTransform, SceneTransform)
public static bool operator ==(SceneTransform left, SceneTransform right)No documentation is available.
operator !=(SceneTransform, SceneTransform)
public static bool operator !=(SceneTransform left, SceneTransform right)No documentation is available.