Struct Transform
Definition
- Namespace:
- Tizen.NUI.Physics2D.Chipmunk
- Assembly:
- Tizen.NUI.Physics2D.dll
Type used for 2x3 affine transforms. See wikipedia for details:
http://en.wikipedia.org/wiki/Affine_transformation. The properties map to the matrix in this
way: [[a c tx], [b d ty]]. We can't use System.Numerics.Matrix32 since it does't use
doubles.
public struct Transform : IEquatable<Transform>
- Implements
-
Constructors
View Source
Create a matrix transformation.
Declaration
public Transform(double a, double b, double c, double d, double tx, double ty)
Parameters
Type |
Name |
Description |
double |
a |
|
double |
b |
|
double |
c |
|
double |
d |
|
double |
tx |
|
double |
ty |
|
Properties
View Source
Declaration
public double A { get; set; }
Property Value
View Source
Declaration
public double B { get; set; }
Property Value
View Source
Declaration
public double C { get; set; }
Property Value
View Source
Declaration
public double D { get; set; }
Property Value
View Source
Create an identity matrix.
Declaration
public static Transform Identity { get; }
Property Value
View Source
Declaration
public double Tx { get; set; }
Property Value
View Source
Declaration
public double Ty { get; set; }
Property Value
Methods
View Source
Create a translation matrix.
Declaration
public static Transform CreateTranslation(Vect translate)
Parameters
Type |
Name |
Description |
Vect |
translate |
|
Returns
View Source
Create a transpose matrix.
Declaration
public static Transform CreateTranspose(double a, double c, double tx, double b, double d, double ty)
Parameters
Type |
Name |
Description |
double |
a |
|
double |
c |
|
double |
tx |
|
double |
b |
|
double |
d |
|
double |
ty |
|
Returns
View Source
Return true if all matrix values are within of each other.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
View Source
Return true if all matrix values are within of each other.
Declaration
public bool Equals(Transform other)
Parameters
Returns
View Source
Declaration
public override int GetHashCode()
Returns
View Source
Return a string formatted like "(a,b|c,d|tx,ty)".
Declaration
public override string ToString()
Returns
Operators
View Source
Return true if all matrix values are within of each other.
Declaration
public static bool operator ==(Transform transform1, Transform transform2)
Parameters
Returns
View Source
Return true if all matrix values are not within of each
other.
Declaration
public static bool operator !=(Transform transform1, Transform transform2)
Parameters
Returns
Implements
IEquatable<>
Extension Methods