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
    IEquatable<><Transform>

    Constructors

    View Source

    Transform(double, double, double, double, double, double)

    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

    A

    A

    Declaration
    public double A { get; set; }
    Property Value
    Type Description
    double
    View Source

    B

    B

    Declaration
    public double B { get; set; }
    Property Value
    Type Description
    double
    View Source

    C

    C

    Declaration
    public double C { get; set; }
    Property Value
    Type Description
    double
    View Source

    D

    D

    Declaration
    public double D { get; set; }
    Property Value
    Type Description
    double
    View Source

    Identity

    Create an identity matrix.

    Declaration
    public static Transform Identity { get; }
    Property Value
    Type Description
    Transform
    View Source

    Tx

    Tx

    Declaration
    public double Tx { get; set; }
    Property Value
    Type Description
    double
    View Source

    Ty

    Ty

    Declaration
    public double Ty { get; set; }
    Property Value
    Type Description
    double

    Methods

    View Source

    CreateTranslation(Vect)

    Create a translation matrix.

    Declaration
    public static Transform CreateTranslation(Vect translate)
    Parameters
    Type Name Description
    Vect translate
    Returns
    Type Description
    Transform
    View Source

    CreateTranspose(double, double, double, double, double, double)

    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
    Type Description
    Transform
    View Source

    Equals(object)

    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
    Type Description
    bool
    View Source

    Equals(Transform)

    Return true if all matrix values are within of each other.

    Declaration
    public bool Equals(Transform other)
    Parameters
    Type Name Description
    Transform other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Get the hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    View Source

    ToString()

    Return a string formatted like "(a,b|c,d|tx,ty)".

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Operators

    View Source

    operator ==(Transform, Transform)

    Return true if all matrix values are within of each other.

    Declaration
    public static bool operator ==(Transform transform1, Transform transform2)
    Parameters
    Type Name Description
    Transform transform1
    Transform transform2
    Returns
    Type Description
    bool
    View Source

    operator !=(Transform, Transform)

    Return true if all matrix values are not within of each other.

    Declaration
    public static bool operator !=(Transform transform1, Transform transform2)
    Parameters
    Type Name Description
    Transform transform1
    Transform transform2
    Returns
    Type Description
    bool

    Implements

    IEquatable<>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX