C# Класс VoidLib.Common.Point

Наследование: IComparable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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 *.

Описание методов

CompareTo() публичный Метод

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.
Результат int

Distance() публичный Метод

Gets the distance to the specified Point.
public Distance ( Point pt ) : double
pt Point The point.
Результат double

Distance() публичный статический Метод

Returns the distance between two points.
public static Distance ( Point ptA, Point ptB ) : double
ptA Point The pt A.
ptB Point The pt B.
Результат double

Distance() публичный Метод

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.
Результат double

Distance() публичный статический Метод

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.
Результат double

Equals() публичный Метод

Determines whether the specified Point is equal to the current Point.
public Equals ( Point pt ) : bool
pt Point The to compare with the current .
Результат bool

Equals() публичный Метод

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 .
Результат bool

FlatDistance() публичный Метод

Gets the flat distance. (Ignores Z value)
public FlatDistance ( float toX, float toY ) : double
toX float To X.
toY float To Y.
Результат double

GetHashCode() публичный Метод

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

GetXml() публичный Метод

Gets the XML format for the Point.
public GetXml ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement

HeightDiff() публичный Метод

Gets the height difference.
public HeightDiff ( float toZ ) : float
toZ float To Z.
Результат float

HeightDiffAbs() публичный Метод

Gets the height difference.
public HeightDiffAbs ( float toZ ) : float
toZ float To Z.
Результат float

Point() публичный Метод

Initializes a new instance of the Point class.
public Point ( ) : System
Результат System

Point() публичный Метод

Initializes a new instance of the Point class.
public Point ( Point pt ) : System
pt Point The pt.
Результат System

Point() публичный Метод

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
Результат System

Point() публичный Метод

Initializes a new instance of the Point class.
public Point ( float x, float y ) : System
x float The x.
y float The y.
Результат System

Point() публичный Метод

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.
Результат System

ToString() публичный Метод

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Implements the operator *.
public static operator ( ) : Point
Результат Point

operator() публичный статический Метод

Implements the operator !=.
public static operator ( ) : bool
Результат bool

operator() публичный статический Метод

Implements the operator *.
public static operator ( ) : double
Результат double