C# Класс AStarCollisionMap.PathfindingUtil

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

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

Метод Описание
GetHypoteneuseAngleDegrees ( Point p1, Point p2 ) : float

Gets the angle of the hypoteneuse with the X-axis between two points.

GetHypoteneuseAngleRad ( Point p1, Point p2 ) : float

Gets the angle of the hypoteneuse with the X-axis between two points.

GetHypoteneuseLength ( Point p1, Point p2 ) : double

Gets the length of the hypoteneuse between two points.

GetPointOnCircle ( Point location, double radius, double angle ) : Point

Gets a point at the edge of a circle at a location, with given radius, with the given angle.

GetSquaredHypoteneuseLength ( Point p1, Point p2 ) : double

Gets the length of the hypoteneuse between two points, squared (without root multiplication)

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

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

Gets the angle of the hypoteneuse with the X-axis between two points.
public static GetHypoteneuseAngleDegrees ( Point p1, Point p2 ) : float
p1 Point Point one
p2 Point Point two
Результат float

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

Gets the angle of the hypoteneuse with the X-axis between two points.
public static GetHypoteneuseAngleRad ( Point p1, Point p2 ) : float
p1 Point Point one
p2 Point Point two
Результат float

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

Gets the length of the hypoteneuse between two points.
public static GetHypoteneuseLength ( Point p1, Point p2 ) : double
p1 Point Point 1
p2 Point Point 2
Результат double

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

Gets a point at the edge of a circle at a location, with given radius, with the given angle.
public static GetPointOnCircle ( Point location, double radius, double angle ) : Point
location Point The location of the circle
radius double The radius of the circle
angle double The angle
Результат Point

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

Gets the length of the hypoteneuse between two points, squared (without root multiplication)
public static GetSquaredHypoteneuseLength ( Point p1, Point p2 ) : double
p1 Point Point 1
p2 Point Point 2
Результат double