Quantum 3
3.0.9
Represents an 3D axis aligned bounding box (AABB). More...
Public Member Functions | |
| FPBounds3 (FPVector3 center, FPVector3 extents) | |
| Create a new Bounds with the given center and extents. More... | |
| readonly bool | Contains (FPVector3 point) |
Returns true if the point is inside the bounds. More... | |
| void | Encapsulate (FPBounds3 bounds) |
| Expand bounds to contain bounds (if needed). More... | |
| void | Encapsulate (FPVector3 point) |
| Expand bounds to contain point (if needed). More... | |
| void | Expand (FP amount) |
| Expand bounds by 0.5 * amount in both directions. More... | |
| void | Expand (FPVector3 amount) |
| Expand bounds by 0.5 * amount in both directions. More... | |
| readonly override int | GetHashCode () |
| Computes a hash code for the current instance of the FPBounds3 class. More... | |
| readonly bool | Intersects (FPBounds3 bounds) |
Returns true if there is an intersection between bounds. More... | |
| void | SetMinMax (FPVector3 min, FPVector3 max) |
| Set the bounds to the given min and max points. More... | |
Static Public Member Functions | |
| static unsafe void | Serialize (void *ptr, IDeterministicFrameSerializer serializer) |
| Serializes the FPBounds3 struct. More... | |
Public Attributes | |
| FPVector3 | Center |
| Center of the bounding box. More... | |
| FPVector3 | Extents |
| Extents of the bounding box (half of the size). More... | |
Static Public Attributes | |
| const int | SIZE = FPVector3.SIZE * 2 |
| /// More... | |
Properties | |
| FPVector3 | Max [get, set] |
| Gets or sets the maximal point of the box. This is always equal to Center + Extents. Setting this property will not affect Min. More... | |
| FPVector3 | Min [get, set] |
| Gets or sets the minimal point of the box. This is always equal to Center - Extents. Setting this property will not affect Max. More... | |
Represents an 3D axis aligned bounding box (AABB).
Create a new Bounds with the given center and extents.
| center | Center point. |
| extents | Extents (half the size). |
|
inline |
Expand bounds by 0.5 * amount in both directions.
| amount |
|
inline |
Expand bounds by 0.5 * amount in both directions.
| amount |
Set the bounds to the given min and max points.
| min | Minimum position. |
| max | Maximum position. |
|
inline |
Expand bounds to contain point (if needed).
| point |
|
inline |
Expand bounds to contain bounds (if needed).
| bounds |
|
inline |
Returns true if there is an intersection between bounds.
| bounds |
|
inline |
Returns true if the point is inside the bounds.
| point |
|
inlinestatic |
Serializes the FPBounds3 struct.
| ptr | Pointer to the FPBounds3 struct to be serialized. |
| serializer | The serializer object used to serialize and deserialize components. |
|
inline |
|
static |
///
The size of the struct in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed.
| FPVector3 Photon.Deterministic.FPBounds3.Center |
Center of the bounding box.
| FPVector3 Photon.Deterministic.FPBounds3.Extents |
Extents of the bounding box (half of the size).
|
getset |