C# Класс FOnline.Math

Наследование: IMath
Показать файл Открыть проект

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

Метод Описание
Distance ( float x1, float y1, float x2, float y2 ) : float
GetDirection ( ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy ) : Direction
GetDistantion ( ushort hx1, ushort hy1, ushort hx2, ushort hy2 ) : uint
GetOffsetDir ( ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy, float offset ) : Direction

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

Метод Описание
Global_GetDirection ( ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy ) : byte
Global_GetDistantion ( ushort hx1, ushort hy1, ushort hx2, ushort hy2 ) : uint
Global_GetOffsetDir ( ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy, float offset ) : byte

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

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

public Distance ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
Результат float

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

public GetDirection ( ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy ) : Direction
from_hx ushort
from_hy ushort
to_hx ushort
to_hy ushort
Результат Direction

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

public GetDistantion ( ushort hx1, ushort hy1, ushort hx2, ushort hy2 ) : uint
hx1 ushort
hy1 ushort
hx2 ushort
hy2 ushort
Результат uint

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

public GetOffsetDir ( ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy, float offset ) : Direction
from_hx ushort
from_hy ushort
to_hx ushort
to_hy ushort
offset float
Результат Direction