C# 클래스 VoidLib.Common.Point

상속: IComparable
파일 보기 프로젝트 열기: andrewmunro/Void

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