C# Class Accord.Math.Point3

Datei anzeigen Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Collinear ( Point3 p1, Point3 p2, Point3 p3 ) : bool

Gets whether three points lie on the same line.

Equals ( Point3 other ) : bool

Determines whether the specified Point3 is equal to this instance.

Equals ( Point3 other, double tolerance ) : bool

Determines whether the specified Point3 is equal to this instance.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

FromVector ( Vector3 vector ) : Point3

Performs a conversion from Accord.Math.Vector3 to Accord.Math.Point3.

GetHashCode ( ) : int

Returns a hash code for this instance.

Point3 ( Vector3 coordinates ) : System

Creates a new Point3 structure from the given coordinates.

Point3 ( float x, float y, float z ) : System

Creates a new Point3 structure from the given coordinates.

operator ( ) : bool

Implements the operator !=.

Method Details

Collinear() public static method

Gets whether three points lie on the same line.
public static Collinear ( Point3 p1, Point3 p2, Point3 p3 ) : bool
p1 Point3 The first point.
p2 Point3 The second point.
p3 Point3 The third point.
return bool

Equals() public method

Determines whether the specified Point3 is equal to this instance.
public Equals ( Point3 other ) : bool
other Point3 The to compare with this instance.
return bool

Equals() public method

Determines whether the specified Point3 is equal to this instance.
public Equals ( Point3 other, double tolerance ) : bool
other Point3 The to compare with this instance.
tolerance double The acceptance tolerance threshold to consider the instances equal.
return bool

Equals() public method

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

FromVector() public static method

Performs a conversion from Accord.Math.Vector3 to Accord.Math.Point3.
public static FromVector ( Vector3 vector ) : Point3
vector Vector3
return Point3

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Point3() public method

Creates a new Point3 structure from the given coordinates.
public Point3 ( Vector3 coordinates ) : System
coordinates Vector3 The point coordinates.
return System

Point3() public method

Creates a new Point3 structure from the given coordinates.
public Point3 ( float x, float y, float z ) : System
x float The x coordinate.
y float The y coordinate.
z float The z coordinate.
return System

operator() public static method

Implements the operator !=.
public static operator ( ) : bool
return bool