Struct uiMatrix3
Namespace: Unity.UIWidgets.ui
Syntax
public struct uiMatrix3
Constructors
uiMatrix3(uiMatrix3)
Declaration
public uiMatrix3(uiMatrix3 other)
Parameters
Type | Name | Description |
---|---|---|
uiMatrix3 | other |
Fields
fTypeMask
Declaration
public int fTypeMask
Field Value
Type | Description |
---|---|
Int32 |
kMPersp0
Declaration
public float kMPersp0
Field Value
Type | Description |
---|---|
Single |
kMPersp1
Declaration
public float kMPersp1
Field Value
Type | Description |
---|---|
Single |
kMPersp2
Declaration
public float kMPersp2
Field Value
Type | Description |
---|---|
Single |
kMScaleX
Declaration
public float kMScaleX
Field Value
Type | Description |
---|---|
Single |
kMScaleY
Declaration
public float kMScaleY
Field Value
Type | Description |
---|---|
Single |
kMSkewX
Declaration
public float kMSkewX
Field Value
Type | Description |
---|---|
Single |
kMSkewY
Declaration
public float kMSkewY
Field Value
Type | Description |
---|---|
Single |
kMTransX
Declaration
public float kMTransX
Field Value
Type | Description |
---|---|
Single |
kMTransY
Declaration
public float kMTransY
Field Value
Type | Description |
---|---|
Single |
Methods
_isFinite()
Declaration
public bool _isFinite()
Returns
Type | Description |
---|---|
Boolean |
_isScaleTranslate()
Declaration
public bool _isScaleTranslate()
Returns
Type | Description |
---|---|
Boolean |
_mapRectScaleTranslate(uiRect)
Declaration
public uiRect _mapRectScaleTranslate(uiRect src)
Parameters
Type | Name | Description |
---|---|---|
uiRect | src |
Returns
Type | Description |
---|---|
uiRect |
concat(uiMatrix3, uiMatrix3)
Declaration
public static uiMatrix3 concat(uiMatrix3 a, uiMatrix3 b)
Parameters
Type | Name | Description |
---|---|---|
uiMatrix3 | a | |
uiMatrix3 | b |
Returns
Type | Description |
---|---|
uiMatrix3 |
copyFrom(uiMatrix3)
Declaration
public void copyFrom(uiMatrix3 other)
Parameters
Type | Name | Description |
---|---|---|
uiMatrix3 | other |
equals(Nullable<uiMatrix3>, Nullable<uiMatrix3>)
Declaration
public static bool equals(uiMatrix3? a, uiMatrix3? b)
Parameters
Type | Name | Description |
---|---|---|
Nullable<uiMatrix3> | a | |
Nullable<uiMatrix3> | b |
Returns
Type | Description |
---|---|
Boolean |
fromMatrix3(Matrix3)
Declaration
public static uiMatrix3 fromMatrix3(Matrix3 mat3)
Parameters
Type | Name | Description |
---|---|---|
Matrix3 | mat3 |
Returns
Type | Description |
---|---|
uiMatrix3 |
getPerspX()
Declaration
public float getPerspX()
Returns
Type | Description |
---|---|
Single |
getPerspY()
Declaration
public float getPerspY()
Returns
Type | Description |
---|---|
Single |
getScaleX()
Declaration
public float getScaleX()
Returns
Type | Description |
---|---|
Single |
getScaleY()
Declaration
public float getScaleY()
Returns
Type | Description |
---|---|
Single |
getSkewX()
Declaration
public float getSkewX()
Returns
Type | Description |
---|---|
Single |
getSkewY()
Declaration
public float getSkewY()
Returns
Type | Description |
---|---|
Single |
getTranslateX()
Declaration
public float getTranslateX()
Returns
Type | Description |
---|---|
Single |
getTranslateY()
Declaration
public float getTranslateY()
Returns
Type | Description |
---|---|
Single |
I()
Declaration
public static uiMatrix3 I()
Returns
Type | Description |
---|---|
uiMatrix3 |
invert(Boolean)
Declaration
public uiMatrix3? invert(bool invertableCheck = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | invertableCheck |
Returns
Type | Description |
---|---|
Nullable<uiMatrix3> |
isIdentity()
Declaration
public bool isIdentity()
Returns
Type | Description |
---|---|
Boolean |
makeRotate(Single)
Declaration
public static uiMatrix3 makeRotate(float radians)
Parameters
Type | Name | Description |
---|---|---|
Single | radians |
Returns
Type | Description |
---|---|
uiMatrix3 |
makeRotate(Single, Single, Single)
Declaration
public static uiMatrix3 makeRotate(float radians, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | radians | |
Single | px | |
Single | py |
Returns
Type | Description |
---|---|
uiMatrix3 |
makeScale(Single, Single)
Declaration
public static uiMatrix3 makeScale(float sx, float sy)
Parameters
Type | Name | Description |
---|---|---|
Single | sx | |
Single | sy |
Returns
Type | Description |
---|---|
uiMatrix3 |
makeSkew(Single, Single)
Declaration
public static uiMatrix3 makeSkew(float dx, float dy)
Parameters
Type | Name | Description |
---|---|---|
Single | dx | |
Single | dy |
Returns
Type | Description |
---|---|
uiMatrix3 |
makeTrans(Single, Single)
Declaration
public static uiMatrix3 makeTrans(float dx, float dy)
Parameters
Type | Name | Description |
---|---|---|
Single | dx | |
Single | dy |
Returns
Type | Description |
---|---|
uiMatrix3 |
makeTrans(uiOffset)
Declaration
public static uiMatrix3 makeTrans(uiOffset offset)
Parameters
Type | Name | Description |
---|---|---|
uiOffset | offset |
Returns
Type | Description |
---|---|
uiMatrix3 |
mapPoints(ref uiOffset[])
Declaration
public void mapPoints(ref uiOffset[] pts)
Parameters
Type | Name | Description |
---|---|---|
uiOffset[] | pts |
mapPoints(ref uiOffset[], ref uiOffset[])
Declaration
public void mapPoints(ref uiOffset[] dst, ref uiOffset[] src)
Parameters
Type | Name | Description |
---|---|---|
uiOffset[] | dst | |
uiOffset[] | src |
mapRect(uiRect)
Declaration
public uiRect mapRect(uiRect src)
Parameters
Type | Name | Description |
---|---|---|
uiRect | src |
Returns
Type | Description |
---|---|
uiRect |
mapXY(Single, Single, out Single, out Single)
Declaration
public void mapXY(float x, float y, out float x1, out float y1)
Parameters
Type | Name | Description |
---|---|---|
Single | x | |
Single | y | |
Single | x1 | |
Single | y1 |
postConcat(uiMatrix3)
Declaration
public void postConcat(uiMatrix3 mat)
Parameters
Type | Name | Description |
---|---|---|
uiMatrix3 | mat |
postScale(Single, Single)
Declaration
public void postScale(float sx, float sy)
Parameters
Type | Name | Description |
---|---|---|
Single | sx | |
Single | sy |
postTranslate(Single, Single)
Declaration
public void postTranslate(float dx, float dy)
Parameters
Type | Name | Description |
---|---|---|
Single | dx | |
Single | dy |
preConcat(uiMatrix3)
Declaration
public void preConcat(uiMatrix3 other)
Parameters
Type | Name | Description |
---|---|---|
uiMatrix3 | other |
preRotate(Single)
Declaration
public void preRotate(float radians)
Parameters
Type | Name | Description |
---|---|---|
Single | radians |
preRotate(Single, Single, Single)
Declaration
public void preRotate(float radians, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | radians | |
Single | px | |
Single | py |
preScale(Single, Single)
Declaration
public void preScale(float sx, float sy)
Parameters
Type | Name | Description |
---|---|---|
Single | sx | |
Single | sy |
preScale(Single, Single, Single, Single)
Declaration
public void preScale(float sx, float sy, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | sx | |
Single | sy | |
Single | px | |
Single | py |
preSkew(Single, Single)
Declaration
public void preSkew(float kx, float ky)
Parameters
Type | Name | Description |
---|---|---|
Single | kx | |
Single | ky |
preTranslate(Single, Single)
Declaration
public void preTranslate(float dx, float dy)
Parameters
Type | Name | Description |
---|---|---|
Single | dx | |
Single | dy |
rectStaysRect()
Declaration
public bool rectStaysRect()
Returns
Type | Description |
---|---|
Boolean |
reset()
Declaration
public void reset()
setRotate(Single)
Declaration
public void setRotate(float radians)
Parameters
Type | Name | Description |
---|---|---|
Single | radians |
setRotate(Single, Single, Single)
Declaration
public void setRotate(float radians, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | radians | |
Single | px | |
Single | py |
setScale(Single, Single, Single, Single)
Declaration
public void setScale(float sx, float sy, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | sx | |
Single | sy | |
Single | px | |
Single | py |
setSinCos(Single, Single)
Declaration
public void setSinCos(float sinV, float cosV)
Parameters
Type | Name | Description |
---|---|---|
Single | sinV | |
Single | cosV |
setSinCos(Single, Single, Single, Single)
Declaration
public void setSinCos(float sinV, float cosV, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | sinV | |
Single | cosV | |
Single | px | |
Single | py |
setSkew(Single, Single)
Declaration
public void setSkew(float kx, float ky)
Parameters
Type | Name | Description |
---|---|---|
Single | kx | |
Single | ky |
setSkew(Single, Single, Single, Single)
Declaration
public void setSkew(float kx, float ky, float px, float py)
Parameters
Type | Name | Description |
---|---|---|
Single | kx | |
Single | ky | |
Single | px | |
Single | py |
setTranslate(Single, Single)
Declaration
public void setTranslate(float dx, float dy)
Parameters
Type | Name | Description |
---|---|---|
Single | dx | |
Single | dy |
toMatrix4x4()
Declaration
public Matrix4x4 toMatrix4x4()
Returns
Type | Description |
---|---|
Matrix4x4 |