C# Class CCT.NUI.Core.Point

显示文件 Open project: an83/KinectTouch2 Class Usage Examples

Public Properties

Property Type Description
X float
Y float
Z float

Public Methods

Method Description
Adapt ( Point point ) : void
Center ( IList points ) : Point
Center ( Point p1, Point p2 ) : Point
Distance ( Point p1, Point p2 ) : double
Distance ( double x1, double y1, double x2, double y2 ) : double
Distance2D ( Point p1, Point p2 ) : double
Equals ( object obj ) : bool
FindIndexOfNearestPoint ( Point target, IList points ) : int
FindNearestPoint ( Point target, IEnumerable points ) : Point
GetHashCode ( ) : int
IsZero ( Point point ) : bool
Point ( Point p ) : System
Point ( float x, float y, float z ) : System
Subtract ( Point point1, Point point2 ) : Vector
ToString ( ) : string

Method Details

Adapt() public method

public Adapt ( Point point ) : void
point Point
return void

Center() public static method

public static Center ( IList points ) : Point
points IList
return Point

Center() public static method

public static Center ( Point p1, Point p2 ) : Point
p1 Point
p2 Point
return Point

Distance() public static method

public static Distance ( Point p1, Point p2 ) : double
p1 Point
p2 Point
return double

Distance() public static method

public static Distance ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
return double

Distance2D() public static method

public static Distance2D ( Point p1, Point p2 ) : double
p1 Point
p2 Point
return double

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FindIndexOfNearestPoint() public static method

public static FindIndexOfNearestPoint ( Point target, IList points ) : int
target Point
points IList
return int

FindNearestPoint() public static method

public static FindNearestPoint ( Point target, IEnumerable points ) : Point
target Point
points IEnumerable
return Point

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsZero() public static method

public static IsZero ( Point point ) : bool
point Point
return bool

Point() public method

public Point ( Point p ) : System
p Point
return System

Point() public method

public Point ( float x, float y, float z ) : System
x float
y float
z float
return System

Subtract() public static method

public static Subtract ( Point point1, Point point2 ) : Vector
point1 Point
point2 Point
return Vector

ToString() public method

public ToString ( ) : string
return string

Property Details

X public_oe property

public float X
return float

Y public_oe property

public float Y
return float

Z public_oe property

public float Z
return float