C# Class MapAround.Geometry.Coordinate3D

Mostra file Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Creates a new object that is a copy of the current instance.

Equals ( ICoordinate p ) : bool

Gets a value indicating whether this coordinate is equal to another. Comparisions performs with tolerance value stored in MapAround.Geometry.PlanimetryAlgorithms.Tolerance. Z values are not compared.

Equals ( object o ) : bool

Derived from System.Object.

ExactEquals ( ICoordinate p ) : bool

Gets a value indicating whether this coordinate instance is equal to another. Comparisions performs exactly (used zero tolerance value). Z values are not compared.

GetBoundingRectangle ( ) : BoundingRectangle

Calculates a minimal axis-aligned bounding rectangle.

GetHashCode ( ) : int

Derived from System.Object.

ReadOnlyCopy ( ) : ICoordinate

Creates a read only copy of this object.

Translate ( double x, double y ) : void

Adds a values to X and Y coordinates.

Values ( ) : double[]

Gets an array containing coordinate values.

operator ( ) : bool

Returns true if coordinates are equal (used tolerance value stored in MapAround.Geometry.PlanimetryAlgorithms.Tolerance).

Private Methods

Method Description
Coordinate3D ( double coords ) : System

Initializes a new instance of MapAround.Geometry.Coordinate3D.

Coordinate3D ( double x, double y ) : System

Initializes a new instance of MapAround.Geometry.Coordinate3D.

Coordinate3D ( double x, double y, double z ) : System

Initializes a new instance of MapAround.Geometry.Coordinate3D.

Method Details

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

Equals() public method

Gets a value indicating whether this coordinate is equal to another. Comparisions performs with tolerance value stored in MapAround.Geometry.PlanimetryAlgorithms.Tolerance. Z values are not compared.
public Equals ( ICoordinate p ) : bool
p ICoordinate The MapAround.Geometry.ICoordinate implementor to compare with the current object
return bool

Equals() public method

Derived from System.Object.
public Equals ( object o ) : bool
o object The System.Object to compare with the current MapAround.Geometry.Coordinate
return bool

ExactEquals() public method

Gets a value indicating whether this coordinate instance is equal to another. Comparisions performs exactly (used zero tolerance value). Z values are not compared.
public ExactEquals ( ICoordinate p ) : bool
p ICoordinate The MapAround.Geometry.ICoordinate implementor to compare with the current object
return bool

GetBoundingRectangle() public method

Calculates a minimal axis-aligned bounding rectangle.
public GetBoundingRectangle ( ) : BoundingRectangle
return BoundingRectangle

GetHashCode() public method

Derived from System.Object.
public GetHashCode ( ) : int
return int

ReadOnlyCopy() public method

Creates a read only copy of this object.
public ReadOnlyCopy ( ) : ICoordinate
return ICoordinate

Translate() public method

Adds a values to X and Y coordinates.
public Translate ( double x, double y ) : void
x double The value that will be added to X coordinate
y double The value that will be added to Y coordinate
return void

Values() public method

Gets an array containing coordinate values.
public Values ( ) : double[]
return double[]

operator() public static method

Returns true if coordinates are equal (used tolerance value stored in MapAround.Geometry.PlanimetryAlgorithms.Tolerance).
public static operator ( ) : bool
return bool