Inheritance
System.Object
Matrix3
public class Matrix3 : IEquatable<Matrix3>
Constructors
Declaration
public Matrix3(Matrix3 other)
Parameters
Type |
Name |
Description |
Matrix3 |
other |
|
Fields
Declaration
public const int kMPersp0 = 6
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMPersp1 = 7
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMPersp2 = 8
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMScaleX = 0
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMScaleY = 4
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMSkewX = 1
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMSkewY = 3
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMTransX = 2
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int kMTransY = 5
Field Value
Type |
Description |
System.Int32 |
|
Properties
Declaration
public float this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public static Matrix3 concat(Matrix3 a, Matrix3 b)
Parameters
Returns
Declaration
public void copyFrom(Matrix3 other)
Parameters
Type |
Name |
Description |
Matrix3 |
other |
|
Declaration
public void dirtyMatrixTypeCache()
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(Matrix3 other)
Parameters
Type |
Name |
Description |
Matrix3 |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void get9(float[] buffer)
Parameters
Type |
Name |
Description |
System.Single[] |
buffer |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
public float getTranslateX()
Returns
Type |
Description |
System.Single |
|
Declaration
public float getTranslateY()
Returns
Type |
Description |
System.Single |
|
Declaration
public Matrix3.TypeMask getType()
Returns
Declaration
public bool hasPerspective()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Matrix3 I()
Returns
Declaration
public bool invert(Matrix3 inverse)
Parameters
Type |
Name |
Description |
Matrix3 |
inverse |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool isScaleTranslate()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool isSimilarity(float tol = 0.000244140625F)
Parameters
Type |
Name |
Description |
System.Single |
tol |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool isTranslate()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Matrix3 makeAll(float scaleX, float skewX, float transX, float skewY, float scaleY, float transY, float pers0, float pers1, float pers2)
Parameters
Type |
Name |
Description |
System.Single |
scaleX |
|
System.Single |
skewX |
|
System.Single |
transX |
|
System.Single |
skewY |
|
System.Single |
scaleY |
|
System.Single |
transY |
|
System.Single |
pers0 |
|
System.Single |
pers1 |
|
System.Single |
pers2 |
|
Returns
Declaration
public static Matrix3 makeRotate(float radians)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
Returns
Declaration
public static Matrix3 makeRotate(float radians, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
System.Single |
px |
|
System.Single |
py |
|
Returns
Declaration
public static Matrix3 makeScale(float scale)
Parameters
Type |
Name |
Description |
System.Single |
scale |
|
Returns
Declaration
public static Matrix3 makeScale(float sx, float sy)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
Returns
Declaration
public static Matrix3 makeSkew(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Returns
Declaration
public static Matrix3 makeTrans(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Returns
Declaration
public static Matrix3 makeTrans(Offset offset)
Parameters
Type |
Name |
Description |
Offset |
offset |
|
Returns
Declaration
public Offset mapPoint(Offset point)
Parameters
Type |
Name |
Description |
Offset |
point |
|
Returns
Declaration
public void mapPoints(Offset[] pts)
Parameters
Type |
Name |
Description |
Offset[] |
pts |
|
Declaration
public void mapPoints(Offset[] dst, Offset[] src)
Parameters
Declaration
public Rect mapRect(Rect src)
Parameters
Type |
Name |
Description |
Rect |
src |
|
Returns
Declaration
public bool mapRect(ref Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool mapRect(out Rect dst, Rect src)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void mapRectScaleTranslate(out Rect dst, Rect src)
Parameters
Declaration
public Offset[] mapRectToQuad(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Declaration
public Offset mapXY(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Returns
Declaration
public void mapXY(float x, float y, out float x1, out float y1)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
x1 |
|
System.Single |
y1 |
|
postConcat(Matrix3)
Declaration
public void postConcat(Matrix3 mat)
Parameters
postRotate(Single)
Declaration
public void postRotate(float radians)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
postRotate(Single, Single, Single)
Declaration
public void postRotate(float radians, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
System.Single |
px |
|
System.Single |
py |
|
postScale(Single, Single)
Declaration
public void postScale(float sx, float sy)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
postScale(Single, Single, Single, Single)
Declaration
public void postScale(float sx, float sy, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
System.Single |
px |
|
System.Single |
py |
|
postSkew(Single, Single)
Declaration
public void postSkew(float kx, float ky)
Parameters
Type |
Name |
Description |
System.Single |
kx |
|
System.Single |
ky |
|
postSkew(Single, Single, Single, Single)
Declaration
public void postSkew(float kx, float ky, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
kx |
|
System.Single |
ky |
|
System.Single |
px |
|
System.Single |
py |
|
postTranslate(Single, Single)
Declaration
public void postTranslate(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Declaration
public void preConcat(Matrix3 other)
Parameters
Type |
Name |
Description |
Matrix3 |
other |
|
Declaration
public void preRotate(float radians)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
Declaration
public void preRotate(float radians, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public void preScale(float sx, float sy)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
Declaration
public void preScale(float sx, float sy, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public bool preservesAxisAlignment()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool preservesRightAngles(float tol = 0.000244140625F)
Parameters
Type |
Name |
Description |
System.Single |
tol |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void preSkew(float kx, float ky)
Parameters
Type |
Name |
Description |
System.Single |
kx |
|
System.Single |
ky |
|
Declaration
public void preSkew(float kx, float ky, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
kx |
|
System.Single |
ky |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public void preTranslate(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Declaration
public bool rectStaysRect()
Returns
Type |
Description |
System.Boolean |
|
Declaration
Declaration
public void set9(float[] buffer)
Parameters
Type |
Name |
Description |
System.Single[] |
buffer |
|
Declaration
public void setAll(float scaleX, float skewX, float transX, float skewY, float scaleY, float transY, float persp0, float persp1, float persp2)
Parameters
Type |
Name |
Description |
System.Single |
scaleX |
|
System.Single |
skewX |
|
System.Single |
transX |
|
System.Single |
skewY |
|
System.Single |
scaleY |
|
System.Single |
transY |
|
System.Single |
persp0 |
|
System.Single |
persp1 |
|
System.Single |
persp2 |
|
Declaration
public void setConcat(Matrix3 a, Matrix3 b)
Parameters
Declaration
public void setIdentity()
Declaration
public void setPerspX(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setPerspY(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setRotate(float radians)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
Declaration
public void setRotate(float radians, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
radians |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public void setScale(float sx, float sy)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
Declaration
public void setScale(float sx, float sy, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public void setScaleTranslate(float sx, float sy, float tx, float ty)
Parameters
Type |
Name |
Description |
System.Single |
sx |
|
System.Single |
sy |
|
System.Single |
tx |
|
System.Single |
ty |
|
Declaration
public void setScaleX(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setScaleY(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setSinCos(float sinV, float cosV)
Parameters
Type |
Name |
Description |
System.Single |
sinV |
|
System.Single |
cosV |
|
Declaration
public void setSinCos(float sinV, float cosV, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
sinV |
|
System.Single |
cosV |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public void setSkew(float kx, float ky)
Parameters
Type |
Name |
Description |
System.Single |
kx |
|
System.Single |
ky |
|
Declaration
public void setSkew(float kx, float ky, float px, float py)
Parameters
Type |
Name |
Description |
System.Single |
kx |
|
System.Single |
ky |
|
System.Single |
px |
|
System.Single |
py |
|
Declaration
public void setSkewX(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setSkewY(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setTranslate(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Declaration
public void setTranslateX(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public void setTranslateY(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(Matrix3 a, Matrix3 b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(Matrix3 a, Matrix3 b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods