C# Class Avalon.Structure.Point

Basic structure used for x,y,z coords.
Afficher le fichier Open project: mabinogidev/mabinogi-development

Méthodes publiques

Свойство Type Description
x float
y float
z float

Méthodes publiques

Méthode 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 méthode

public static CalculateYaw ( Point a ) : ushort
a Point
Résultat ushort

CalculateYaw() public static méthode

public static CalculateYaw ( Point a, Point b ) : ushort
a Point
b Point
Résultat ushort

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetDistance3D() public static méthode

public static GetDistance3D ( Point A, Point B ) : double
A Point
B Point
Résultat double

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsInSightRangeByRadius() public static méthode

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

IsInSightRangeByRadius() public static méthode

public static IsInSightRangeByRadius ( Point A, Point B, uint maxdistance ) : bool
A Point
B Point
maxdistance uint
Résultat bool

Point() public méthode

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.
Résultat System

Point() public méthode

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
Résultat System

operator() public static méthode

Multiplies one point with another
public static operator ( ) : Point
Résultat Point

operator() public static méthode

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

Property Details

x public_oe property

x-component
public float x
Résultat float

y public_oe property

y-component
public float y
Résultat float

z public_oe property

z-component
public float z
Résultat float