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
-
Properties
View Source
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
View Source
Point A in the contact point.
Declaration
public Vect PointA { get; }
Property Value
View Source
Point B in the contact point.
Declaration
public Vect PointB { get; }
Property Value
Methods
View Source
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
View Source
Returns true if neither ContactPoint is null and the points are within
distance of each other.
Declaration
public bool Equals(ContactPoint other)
Parameters
Returns
View Source
Declaration
public override int GetHashCode()
Returns
View Source
Returns a string in the format of "a: {pointA}, b: {pointB}, distance: {distance}".
Declaration
public override string ToString()
Returns
Operators
View Source
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
Returns
View Source
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
Returns
Extension Methods