Class ContactPoint

    Definition

    Namespace:
    Tizen.NUI.Physics2D.Chipmunk
    Assembly:
    Tizen.NUI.Physics2D.dll

    Contains information about a contact point. PointA and PointB are the contact positions on the surface of each shape. Distance is the penetration distance of the two, which is a negative value. This value is calculated as dot(point2 - point1), normal) and is ignored when you set the ContactPointSet.

    public sealed class ContactPoint : IEquatable<ContactPoint>
    Inheritance
    object
    ContactPoint

    Properties

    View Source

    Distance

    The penetration distance of the two shapes (as a negative value). This value is calculated as dot(point2 - point1), normal) and is ignored when you set the ContactPointSet.

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

    PointA

    Point A in the contact point.

    Declaration
    public Vect PointA { get; }
    Property Value
    Type Description
    Vect
    View Source

    PointB

    Point B in the contact point.

    Declaration
    public Vect PointB { get; }
    Property Value
    Type Description
    Vect

    Methods

    View Source

    Equals(object)

    Check if this ContactPoint is equal to an object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(ContactPoint)

    Returns true if neither ContactPoint is null and the points are within distance of each other.

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

    GetHashCode()

    Get the ContactPoint hash set.

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

    ToString()

    Returns a string in the format of "a: {pointA}, b: {pointB}, distance: {distance}".

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Operators

    View Source

    operator ==(ContactPoint, ContactPoint)

    Returns true if both ContactPoints are the same object or the dimensions are within distance of each other.

    Declaration
    public static bool operator ==(ContactPoint left, ContactPoint right)
    Parameters
    Type Name Description
    ContactPoint left
    ContactPoint right
    Returns
    Type Description
    bool
    View Source

    operator !=(ContactPoint, ContactPoint)

    Returns false if both ContactPoints are the same object or the dimensions are within distance of each other.

    Declaration
    public static bool operator !=(ContactPoint left, ContactPoint right)
    Parameters
    Type Name Description
    ContactPoint left
    ContactPoint right
    Returns
    Type Description
    bool

    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