C# Class VoidLib.Common.Point

Inheritance: IComparable
Afficher le fichier Open project: andrewmunro/Void

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CompareTo ( object obj ) : int

Compares the current instance with another object of the same type.

Distance ( Point pt ) : double

Gets the distance to the specified Point.

Distance ( Point ptA, Point ptB ) : double

Returns the distance between two points.

Distance ( float toX, float toY, float toZ ) : double

Gets the distance to the specified location.

Distance ( float fromX, float fromY, float fromZ, float toX, float toY, float toZ ) : double

Returns the distance between two points.

Equals ( Point pt ) : bool

Determines whether the specified Point is equal to the current Point.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

FlatDistance ( float toX, float toY ) : double

Gets the flat distance. (Ignores Z value)

GetHashCode ( ) : int

Serves as a hash function for a particular type.

GetXml ( ) : System.Xml.Linq.XElement

Gets the XML format for the Point.

HeightDiff ( float toZ ) : float

Gets the height difference.

HeightDiffAbs ( float toZ ) : float

Gets the height difference.

Point ( ) : System

Initializes a new instance of the Point class.

Point ( Point pt ) : System

Initializes a new instance of the Point class.

Point ( System.Xml.Linq.XElement xml ) : System

Initializes a new instance of the Point class using Xml as a source.

Point ( float x, float y ) : System

Initializes a new instance of the Point class.

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

Initializes a new instance of the Point class.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

operator ( ) : Point

Implements the operator *.

operator ( ) : bool

Implements the operator !=.

operator ( ) : double

Implements the operator *.

Method Details

CompareTo() public méthode

Compares the current instance with another object of the same type.
/// is not the same type as this instance.
public CompareTo ( object obj ) : int
obj object An object to compare with this instance.
Résultat int

Distance() public méthode

Gets the distance to the specified Point.
public Distance ( Point pt ) : double
pt Point The point.
Résultat double

Distance() public static méthode

Returns the distance between two points.
public static Distance ( Point ptA, Point ptB ) : double
ptA Point The pt A.
ptB Point The pt B.
Résultat double

Distance() public méthode

Gets the distance to the specified location.
public Distance ( float toX, float toY, float toZ ) : double
toX float To X.
toY float To Y.
toZ float To Z.
Résultat double

Distance() public static méthode

Returns the distance between two points.
public static Distance ( float fromX, float fromY, float fromZ, float toX, float toY, float toZ ) : double
fromX float From X.
fromY float From Y.
fromZ float From Z.
toX float To X.
toY float To Y.
toZ float To Z.
Résultat double

Equals() public méthode

Determines whether the specified Point is equal to the current Point.
public Equals ( Point pt ) : bool
pt Point The to compare with the current .
Résultat bool

Equals() public méthode

Determines whether the specified T:System.Object is equal to the current T:System.Object.
public Equals ( object obj ) : bool
obj object The to compare with the current .
Résultat bool

FlatDistance() public méthode

Gets the flat distance. (Ignores Z value)
public FlatDistance ( float toX, float toY ) : double
toX float To X.
toY float To Y.
Résultat double

GetHashCode() public méthode

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Résultat int

GetXml() public méthode

Gets the XML format for the Point.
public GetXml ( ) : System.Xml.Linq.XElement
Résultat System.Xml.Linq.XElement

HeightDiff() public méthode

Gets the height difference.
public HeightDiff ( float toZ ) : float
toZ float To Z.
Résultat float

HeightDiffAbs() public méthode

Gets the height difference.
public HeightDiffAbs ( float toZ ) : float
toZ float To Z.
Résultat float

Point() public méthode

Initializes a new instance of the Point class.
public Point ( ) : System
Résultat System

Point() public méthode

Initializes a new instance of the Point class.
public Point ( Point pt ) : System
pt Point The pt.
Résultat System

Point() public méthode

Initializes a new instance of the Point class using Xml as a source.
public Point ( System.Xml.Linq.XElement xml ) : System
xml System.Xml.Linq.XElement
Résultat System

Point() public méthode

Initializes a new instance of the Point class.
public Point ( float x, float y ) : System
x float The x.
y float The y.
Résultat System

Point() public méthode

Initializes a new instance of the Point class.
public Point ( float x, float y, float z ) : System
x float The x.
y float The y.
z float The z.
Résultat System

ToString() public méthode

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Résultat string

operator() public static méthode

Implements the operator *.
public static operator ( ) : Point
Résultat Point

operator() public static méthode

Implements the operator !=.
public static operator ( ) : bool
Résultat bool

operator() public static méthode

Implements the operator *.
public static operator ( ) : double
Résultat double