Class Transform
- Namespace
- Gsk
- Assembly
- Gsk-4.0.dll
public sealed class Transform : BoxedRecord, IEquatable<Transform>
- Inheritance
-
Transform
- Implements
- Inherited Members
Constructors
Transform(TransformOwnedHandle)
public Transform(TransformOwnedHandle handle)
Parameters
handle
TransformOwnedHandle
Properties
Handle
public TransformOwnedHandle Handle { get; }
Property Value
Methods
Equal(Transform?)
public bool Equal(Transform? second)
Parameters
second
Transform
Returns
Equals(Transform?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Transform? other)
Parameters
other
TransformAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetCategory()
public TransformCategory GetCategory()
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Invert()
public Transform? Invert()
Returns
Matrix(Matrix)
public Transform Matrix(Matrix matrix)
Parameters
matrix
Matrix
Returns
New()
public static Transform New()
Returns
Perspective(float)
public Transform Perspective(float depth)
Parameters
depth
float
Returns
Print(String)
public void Print(String @string)
Parameters
string
String
Ref()
public Transform? Ref()
Returns
Rotate(float)
public Transform? Rotate(float angle)
Parameters
angle
float
Returns
Rotate3d(float, Vec3)
public Transform? Rotate3d(float angle, Vec3 axis)
Parameters
Returns
Scale(float, float)
public Transform? Scale(float factorX, float factorY)
Parameters
Returns
Scale3d(float, float, float)
public Transform? Scale3d(float factorX, float factorY, float factorZ)
Parameters
Returns
Skew(float, float)
[Version("4.6")]
public Transform? Skew(float skewX, float skewY)
Parameters
Returns
To2d(out float, out float, out float, out float, out float, out float)
public void To2d(out float outXx, out float outYx, out float outXy, out float outYy, out float outDx, out float outDy)
Parameters
To2dComponents(out float, out float, out float, out float, out float, out float, out float)
[Version("4.6")]
public void To2dComponents(out float outSkewX, out float outSkewY, out float outScaleX, out float outScaleY, out float outAngle, out float outDx, out float outDy)
Parameters
outSkewX
floatoutSkewY
floatoutScaleX
floatoutScaleY
floatoutAngle
floatoutDx
floatoutDy
float
ToAffine(out float, out float, out float, out float)
public void ToAffine(out float outScaleX, out float outScaleY, out float outDx, out float outDy)
Parameters
ToString()
public string ToString()
Returns
ToTranslate(out float, out float)
public void ToTranslate(out float outDx, out float outDy)
Parameters
Translate(Point)
public Transform? Translate(Point point)
Parameters
point
Point
Returns
Translate3d(Point3D)
public Transform? Translate3d(Point3D point)
Parameters
point
Point3D
Returns
Unref()
public void Unref()