ClassSimplePosition
Lightweight IPosition that composes transforms from scale, rotate, and translate properties at runtime.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Data
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class SimplePosition : IPosition
Inheritance: objectSimplePosition
Implements:
Constructors
SimplePosition()
Create a new instance initialized to identity (no translation, unit scale, 0° rotation).
Declaration
public SimplePosition()
Properties
Default
Returns a new instance preconfigured with identity transformation.
Declaration
public static SimplePosition Default { get; }
Property Value
A new SimplePosition instance with default transformation values.
Methods
Clear()
Resets all transformation values to their default state.
Declaration
public void Clear()
Implements
Clone()
Creates a deep copy of the current simple position with all transformation values.
Declaration
public IPosition Clone()
Returns
A new SimplePosition instance that is a copy of this instance.
Implements
Rotate(double)
Applies rotation transformation by the specified angle around the origin.
Declaration
public void Rotate(double angle)
Parameters
angle
The rotation angle in degrees.
Implements
RotateAt(double, double, double)
Applies rotation transformation by the specified angle around a center point.
Scale(double, double)
Applies scaling transformation by the specified factors.
ScaleAt(double, double, double, double)
Applies scaling transformation by the specified factors around a center point.
Declaration
public void ScaleAt(double scaleX, double scaleY, double centerX, double centerY)
Parameters
scaleX
The horizontal scale factor.
scaleY
The vertical scale factor.
centerX
The X coordinate of the scaling center point.
centerY
The Y coordinate of the scaling center point.
Implements
Translate(double, double)
Applies translation transformation by the specified offset values.