C# Класс Mapsui.Geometries.Utilities.Algorithms

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

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

Метод Описание
DegreesToRadians ( double degrees ) : double

Converts the specified angle from degrees to radians

Distance ( double x1, double y1, double x2, double y2 ) : double

Gets the euclidean distance between two points.

DistanceToLine ( System.Point point, List points ) : double
IsCCW ( LinearRing ring ) : bool

Tests whether a ring is oriented counter-clockwise.

PointInPolygon ( List ring, System.Point point ) : bool
RotateClockwiseDegrees ( double x, double y, double degrees ) : System.Point

Rotates the specified point clockwise about the origin

RotateClockwiseRadians ( double x, double y, double radians ) : System.Point

Rotates the specified point clockwise about the origin

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

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

Converts the specified angle from degrees to radians
public static DegreesToRadians ( double degrees ) : double
degrees double Angle to convert (degrees)
Результат double

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

Gets the euclidean distance between two points.
public static Distance ( double x1, double y1, double x2, double y2 ) : double
x1 double The first point's X coordinate.
y1 double The first point's Y coordinate.
x2 double The second point's X coordinate.
y2 double The second point's Y coordinate.
Результат double

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

public static DistanceToLine ( System.Point point, List points ) : double
point System.Point
points List
Результат double

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

Tests whether a ring is oriented counter-clockwise.
public static IsCCW ( LinearRing ring ) : bool
ring LinearRing Ring to test.
Результат bool

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

public static PointInPolygon ( List ring, System.Point point ) : bool
ring List
point System.Point
Результат bool

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

Rotates the specified point clockwise about the origin
public static RotateClockwiseDegrees ( double x, double y, double degrees ) : System.Point
x double X coordinate to rotate
y double Y coordinate to rotate
degrees double Angle to rotate (degrees)
Результат System.Point

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

Rotates the specified point clockwise about the origin
public static RotateClockwiseRadians ( double x, double y, double radians ) : System.Point
x double X coordinate to rotate
y double Y coordinate to rotate
radians double Angle to rotate (radians)
Результат System.Point