C# Class FOnline.Server.Math

Inheritance: IMath
ファイルを表示 Open project: rotators/fosdk

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Distance() public method

public Distance ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

GetDirection() public method

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
return Direction

GetDistantion() public method

public GetDistantion ( ushort hx1, ushort hy1, ushort hx2, ushort hy2 ) : uint
hx1 ushort
hy1 ushort
hx2 ushort
hy2 ushort
return uint

GetOffsetDir() public method

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
return Direction