mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
2007 idPhysics upgrades.
This commit is contained in:
+269
-253
File diff suppressed because it is too large
Load Diff
+2233
-2182
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+631
-525
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -62,6 +62,8 @@ public:
|
||||
void Clear( void ); // inside out bounds
|
||||
void Zero( void ); // single point at origin
|
||||
|
||||
idVec3 Size(void) const;
|
||||
|
||||
idVec3 GetCenter( void ) const; // returns center of bounds
|
||||
float GetRadius( void ) const; // returns the radius relative to the bounds origin
|
||||
float GetRadius( const idVec3 ¢er ) const; // returns the radius relative to the given center
|
||||
@@ -333,6 +335,10 @@ ID_INLINE idBounds idBounds::Translate( const idVec3 &translation ) const {
|
||||
return idBounds( b[0] + translation, b[1] + translation );
|
||||
}
|
||||
|
||||
ID_INLINE idVec3 idBounds::Size(void) const {
|
||||
return(b[1] - b[0]);
|
||||
}
|
||||
|
||||
ID_INLINE idBounds &idBounds::TranslateSelf( const idVec3 &translation ) {
|
||||
b[0] += translation;
|
||||
b[1] += translation;
|
||||
|
||||
Reference in New Issue
Block a user