Class Matrix3x2Extensions
- Namespace
- SixLabors.ImageSharp
- Assembly
- SixLabors.ImageSharp.dll
Extension methods for the Matrix3x2 struct.
public static class Matrix3x2Extensions
- Inheritance
-
Matrix3x2Extensions
- Inherited Members
Methods
CreateRotation(float, PointF)
Creates a rotation matrix using the given rotation in radians and a center point.
public static Matrix3x2 CreateRotation(float radians, PointF centerPoint)
Parameters
Returns
- Matrix3x2
A rotation matrix.
CreateRotationDegrees(float)
Creates a rotation matrix using the given rotation in degrees.
public static Matrix3x2 CreateRotationDegrees(float degrees)
Parameters
degrees
floatThe amount of rotation, in degrees.
Returns
- Matrix3x2
A rotation matrix.
CreateRotationDegrees(float, PointF)
Creates a rotation matrix using the given rotation in degrees and a center point.
public static Matrix3x2 CreateRotationDegrees(float degrees, PointF centerPoint)
Parameters
Returns
- Matrix3x2
A rotation matrix.
CreateScale(SizeF)
Creates a scale matrix from the given vector scale.
public static Matrix3x2 CreateScale(SizeF scales)
Parameters
scales
SizeFThe scale to use.
Returns
- Matrix3x2
A scaling matrix.
CreateScale(SizeF, PointF)
Creates a scale matrix from the given vector scale with an offset from the given center point.
public static Matrix3x2 CreateScale(SizeF scales, PointF centerPoint)
Parameters
Returns
- Matrix3x2
A scaling matrix.
CreateScale(float, PointF)
Creates a scale matrix that scales uniformly with the given scale with an offset from the given center.
public static Matrix3x2 CreateScale(float scale, PointF centerPoint)
Parameters
Returns
- Matrix3x2
A scaling matrix.
CreateScale(float, float, PointF)
Creates a scale matrix that is offset by a given center point.
public static Matrix3x2 CreateScale(float xScale, float yScale, PointF centerPoint)
Parameters
xScale
floatValue to scale by on the X-axis.
yScale
floatValue to scale by on the Y-axis.
centerPoint
PointFThe center point.
Returns
- Matrix3x2
A scaling matrix.
CreateSkew(float, float, PointF)
Creates a skew matrix from the given angles in radians and a center point.
public static Matrix3x2 CreateSkew(float radiansX, float radiansY, PointF centerPoint)
Parameters
radiansX
floatThe X angle, in radians.
radiansY
floatThe Y angle, in radians.
centerPoint
PointFThe center point.
Returns
- Matrix3x2
A skew matrix.
CreateSkewDegrees(float, float)
Creates a skew matrix from the given angles in degrees.
public static Matrix3x2 CreateSkewDegrees(float degreesX, float degreesY)
Parameters
Returns
- Matrix3x2
A skew matrix.
CreateSkewDegrees(float, float, PointF)
Creates a skew matrix from the given angles in degrees and a center point.
public static Matrix3x2 CreateSkewDegrees(float degreesX, float degreesY, PointF centerPoint)
Parameters
degreesX
floatThe X angle, in degrees.
degreesY
floatThe Y angle, in degrees.
centerPoint
PointFThe center point.
Returns
- Matrix3x2
A skew matrix.
CreateTranslation(PointF)
Creates a translation matrix from the given vector.
public static Matrix3x2 CreateTranslation(PointF position)
Parameters
position
PointFThe translation position.
Returns
- Matrix3x2
A translation matrix.