Class Point
Represents a 2D point.
Inheritance
System.Object
Point
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Geometry
Syntax
public class Point : IComparable<Point>, IEquatable<Point>
Constructors
Point()
Declaration
public Point()
Point(Double, Double)
Declaration
public Point(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y |
Point(Double, Double, Int32)
Declaration
public Point(double x, double y, int label)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y | |
System.Int32 | label |
Properties
ID
Gets or sets the vertex id.
Declaration
public int ID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Label
Gets or sets a general-purpose label.
Declaration
public int Label { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This is used for the vertex boundary mark.
X
Gets or sets the vertex x coordinate.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Gets or sets the vertex y coordinate.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
CompareTo(Point)
Declaration
public int CompareTo(Point other)
Parameters
Type | Name | Description |
---|---|---|
Point | other |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.IComparable<T>.CompareTo(T)
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
Equals(Point)
Declaration
public bool Equals(Point p)
Parameters
Type | Name | Description |
---|---|---|
Point | p |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>.Equals(T)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Operators
Equality(Point, Point)
Declaration
public static bool operator ==(Point a, Point b)
Parameters
Type | Name | Description |
---|---|---|
Point | a | |
Point | b |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(Point, Point)
Declaration
public static bool operator !=(Point a, Point b)
Parameters
Type | Name | Description |
---|---|---|
Point | a | |
Point | b |
Returns
Type | Description |
---|---|
System.Boolean |