C# Class idTech4.idBounds

Datei anzeigen Open project: iainmckay/idtech4.net Class Usage Examples

Public Properties

Property Type Description
Max Vector3
Min Vector3

Public Methods

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

Method Details

AddBounds() public method

public AddBounds ( idBounds b ) : bool
b idBounds
return bool

AddPoint() public method

public AddPoint ( Vector3 point ) : bool
point Vector3
return bool

AddPoint() public method

public AddPoint ( Vector4 point ) : bool
point Vector4
return bool

AxisProjection() public method

public AxisProjection ( Vector3 direction, float &min, float &max ) : void
direction Vector3
min float
max float
return void

BoundsForPointRotation() public static method

public static BoundsForPointRotation ( Vector3 start, idRotation rotation ) : idBounds
start Vector3
rotation idRotation
return idBounds

Clear() public method

public Clear ( ) : void
return void

Equals() public method

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

Expand() public static method

public static Expand ( float d ) : idBounds
d float
return idBounds

Expand() public static method

public static Expand ( idBounds bounds, float d ) : idBounds
bounds idBounds
d float
return idBounds

FromBoundsRotation() public static method

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

FromBoundsTranslation() public static method

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

FromPointRotation() public static method

Most tight bounds for the rotational movement of the given point.
public static FromPointRotation ( Vector3 point, idRotation rotation ) : idBounds
point Vector3
rotation idRotation
return idBounds

FromPointTranslation() public static method

Most tight bounds for the translational movement of the given point.
public static FromPointTranslation ( Vector3 point, Vector3 translation ) : idBounds
point Vector3
translation Vector3
return idBounds

FromTransformedBounds() public static method

public static FromTransformedBounds ( idBounds bounds, Vector3 origin, Matrix axis ) : idBounds
bounds idBounds
origin Vector3
axis Matrix
return idBounds

GetRadius() public method

public GetRadius ( ) : float
return float

GetRadius() public method

public GetRadius ( Vector3 center ) : float
center Vector3
return float

Translate() public method

public Translate ( Vector3 translation ) : void
translation Vector3
return void

idBounds() public method

public idBounds ( Vector3 point ) : System
point Vector3
return System

idBounds() public method

public idBounds ( Vector3 min, Vector3 max ) : System
min Vector3
max Vector3
return System

operator() public static method

public static operator ( ) : bool
return bool

operator() public static method

public static operator ( ) : idBounds
return idBounds

Property Details

Max public_oe property

public Vector3 Max
return Vector3

Min public_oe property

public Vector3 Min
return Vector3