C# Класс idTech4.idBounds

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Max Vector3
Min Vector3

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

Метод Описание
AddBounds ( idBounds b ) : bool
AddPoint ( Vector3 point ) : bool
AddPoint ( Vector4 point ) : bool
AxisProjection ( Vector3 direction, float &min, float &max ) : void
BoundsForPointRotation ( Vector3 start, idRotation rotation ) : idBounds
Clear ( ) : void
Equals ( object obj ) : bool
Expand ( float d ) : idBounds
Expand ( idBounds bounds, float d ) : idBounds
FromBoundsRotation ( idBounds bounds, Vector3 origin, Matrix axis, idRotation rotation ) : idBounds

Most tight bounds for the rotational movement of the given bounds.

FromBoundsTranslation ( idBounds bounds, Vector3 origin, Matrix axis, Vector3 translation ) : idBounds

Most tight bounds for the translational movement of the given bounds.

FromPointRotation ( Vector3 point, idRotation rotation ) : idBounds

Most tight bounds for the rotational movement of the given point.

FromPointTranslation ( Vector3 point, Vector3 translation ) : idBounds

Most tight bounds for the translational movement of the given point.

FromTransformedBounds ( idBounds bounds, Vector3 origin, Matrix axis ) : idBounds
GetRadius ( ) : float
GetRadius ( Vector3 center ) : float
Translate ( Vector3 translation ) : void
idBounds ( Vector3 point ) : System
idBounds ( Vector3 min, Vector3 max ) : System
operator ( ) : bool
operator ( ) : idBounds

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

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

public AddBounds ( idBounds b ) : bool
b idBounds
Результат bool

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

public AddPoint ( Vector3 point ) : bool
point Vector3
Результат bool

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

public AddPoint ( Vector4 point ) : bool
point Vector4
Результат bool

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

public AxisProjection ( Vector3 direction, float &min, float &max ) : void
direction Vector3
min float
max float
Результат void

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

public static BoundsForPointRotation ( Vector3 start, idRotation rotation ) : idBounds
start Vector3
rotation idRotation
Результат idBounds

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

public Clear ( ) : void
Результат void

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

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

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

public static Expand ( float d ) : idBounds
d float
Результат idBounds

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

public static Expand ( idBounds bounds, float d ) : idBounds
bounds idBounds
d float
Результат idBounds

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

Most tight bounds for the rotational movement of the given bounds.
public static FromBoundsRotation ( idBounds bounds, Vector3 origin, Matrix axis, idRotation rotation ) : idBounds
bounds idBounds
origin Vector3
axis Matrix
rotation idRotation
Результат idBounds

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

Most tight bounds for the translational movement of the given bounds.
public static FromBoundsTranslation ( idBounds bounds, Vector3 origin, Matrix axis, Vector3 translation ) : idBounds
bounds idBounds
origin Vector3
axis Matrix
translation Vector3
Результат idBounds

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

Most tight bounds for the rotational movement of the given point.
public static FromPointRotation ( Vector3 point, idRotation rotation ) : idBounds
point Vector3
rotation idRotation
Результат idBounds

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

Most tight bounds for the translational movement of the given point.
public static FromPointTranslation ( Vector3 point, Vector3 translation ) : idBounds
point Vector3
translation Vector3
Результат idBounds

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

public static FromTransformedBounds ( idBounds bounds, Vector3 origin, Matrix axis ) : idBounds
bounds idBounds
origin Vector3
axis Matrix
Результат idBounds

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

public GetRadius ( ) : float
Результат float

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

public GetRadius ( Vector3 center ) : float
center Vector3
Результат float

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

public Translate ( Vector3 translation ) : void
translation Vector3
Результат void

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

public idBounds ( Vector3 point ) : System
point Vector3
Результат System

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

public idBounds ( Vector3 min, Vector3 max ) : System
min Vector3
max Vector3
Результат System

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

public static operator ( ) : bool
Результат bool

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

public static operator ( ) : idBounds
Результат idBounds

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

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

public Vector3 Max
Результат Vector3

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

public Vector3 Min
Результат Vector3