C# Класс MapAround.Geometry.Coordinate

Показать файл Открыть проект

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

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

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).

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).

Приватные методы

Метод Описание
Coordinate ( double coords ) : System

Initializes a new instance of MapAround.Geometry.Coordinate.

Coordinate ( double x, double y ) : System

Initializes a new instance of MapAround.Geometry.Coordinate.

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

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

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

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

Gets a value indicating whether this coordinate is equal to another. Comparisions performs with tolerance value stored in MapAround.Geometry.PlanimetryAlgorithms.Tolerance.
public Equals ( ICoordinate p ) : bool
p ICoordinate The MapAround.Geometry.ICoordinate implementor to compare with the current object
Результат bool

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

Derived from System.Object.
public Equals ( object o ) : bool
o object The System.Object to compare with the current MapAround.Geometry.Coordinate
Результат bool

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

Gets a value indicating whether this coordinate instance is equal to another. Comparisions performs exactly (used zero tolerance value).
public ExactEquals ( ICoordinate p ) : bool
p ICoordinate The MapAround.Geometry.ICoordinate implementor to compare with the current object
Результат bool

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

Calculates a minimal axis-aligned bounding rectangle.
public GetBoundingRectangle ( ) : BoundingRectangle
Результат BoundingRectangle

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

Derived from System.Object.
public GetHashCode ( ) : int
Результат int

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

Creates a read only copy of this object.
public ReadOnlyCopy ( ) : ICoordinate
Результат ICoordinate

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

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

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

Gets an array containing coordinate values.
public Values ( ) : double[]
Результат double[]

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

Returns true if coordinates are equal (used tolerance value stored in MapAround.Geometry.PlanimetryAlgorithms.Tolerance).
public static operator ( ) : bool
Результат bool