C# Class Avalon.Structure.Point

Basic structure used for x,y,z coords.
Datei anzeigen Open project: mabinogidev/mabinogi-development

Public Properties

Property Type Description
x float
y float
z float

Public Methods

Method Description
CalculateYaw ( Point a ) : ushort
CalculateYaw ( Point a, Point b ) : ushort
Equals ( object obj ) : bool
GetDistance3D ( Point A, Point B ) : double
GetHashCode ( ) : int
IsInSightRangeByRadius ( Point A, Point B ) : bool

Check if a object is in sightrange of eachother

IsInSightRangeByRadius ( Point A, Point B, uint maxdistance ) : bool
Point ( float pos ) : System

Initialized a position object out of a array of floats.

The first array element serves as the x component. The second array member serves a the y component. The third element serves as the z component.

Point ( float x, float y, float z ) : System

Initializes a point object out of 3 supplied arguments.

operator ( ) : Point

Multiplies one point with another

operator ( ) : bool

Compares if point a is not the same as point b

Method Details

CalculateYaw() public static method

public static CalculateYaw ( Point a ) : ushort
a Point
return ushort

CalculateYaw() public static method

public static CalculateYaw ( Point a, Point b ) : ushort
a Point
b Point
return ushort

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetDistance3D() public static method

public static GetDistance3D ( Point A, Point B ) : double
A Point
B Point
return double

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsInSightRangeByRadius() public static method

Check if a object is in sightrange of eachother
public static IsInSightRangeByRadius ( Point A, Point B ) : bool
A Point
B Point
return bool

IsInSightRangeByRadius() public static method

public static IsInSightRangeByRadius ( Point A, Point B, uint maxdistance ) : bool
A Point
B Point
maxdistance uint
return bool

Point() public method

Initialized a position object out of a array of floats.
The first array element serves as the x component. The second array member serves a the y component. The third element serves as the z component.
public Point ( float pos ) : System
pos float Array of 3 floats.
return System

Point() public method

Initializes a point object out of 3 supplied arguments.
public Point ( float x, float y, float z ) : System
x float Position on the x-axis
y float Position on the y-axis
z float Position on the z-axis
return System

operator() public static method

Multiplies one point with another
public static operator ( ) : Point
return Point

operator() public static method

Compares if point a is not the same as point b
public static operator ( ) : bool
return bool

Property Details

x public_oe property

x-component
public float x
return float

y public_oe property

y-component
public float y
return float

z public_oe property

z-component
public float z
return float