C# Класс Avalon.Structure.Point

Basic structure used for x,y,z coords.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
x float
y float
z float

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

Метод Описание
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

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

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

public static CalculateYaw ( Point a ) : ushort
a Point
Результат ushort

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

public static CalculateYaw ( Point a, Point b ) : ushort
a Point
b Point
Результат ushort

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

public static GetDistance3D ( Point A, Point B ) : double
A Point
B Point
Результат double

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

public GetHashCode ( ) : int
Результат int

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

Check if a object is in sightrange of eachother
public static IsInSightRangeByRadius ( Point A, Point B ) : bool
A Point
B Point
Результат bool

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

public static IsInSightRangeByRadius ( Point A, Point B, uint maxdistance ) : bool
A Point
B Point
maxdistance uint
Результат bool

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

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.
Результат System

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

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
Результат System

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

Multiplies one point with another
public static operator ( ) : Point
Результат Point

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

Compares if point a is not the same as point b
public static operator ( ) : bool
Результат bool

Описание свойств

x публичное свойство

x-component
public float x
Результат float

y публичное свойство

y-component
public float y
Результат float

z публичное свойство

z-component
public float z
Результат float