Defines a 2D box in its local space. In order to create a Shape2D of type Shape2DType.Box, use Shape2D.CreateBox.
- See also
- Shape2D, Shape2DType
More...
|
const int | SIZE = FP.SIZE + FPVector2.SIZE |
| The size of the struct in bytes. More...
|
|
|
FP | BroadRadius [get] |
| The smallest radius of a circle centered at the box centroid that encloses the box. More...
|
|
FPVector2 | Extents [get, set] |
| Vector that defines the distance from the box centroid to the furthest point in the positive direction of each axis. More...
|
|
Defines a 2D box in its local space. In order to create a Shape2D of type Shape2DType.Box, use Shape2D.CreateBox.
- See also
- Shape2D, Shape2DType
◆ Serialize()
Serializes a BoxShape into an instance of IDeterministicFrameSerializer.
- Parameters
-
ptr | The pointer to the BoxShape. |
serializer | The instance of IDeterministicFrameSerializer. |
◆ GetHashCode()
override Int32 Quantum.Shape2D.BoxShape.GetHashCode |
( |
| ) |
|
|
inline |
Overrides the hash code generation of this type.
- Returns
- A hash code of the current state of this instance.
◆ SIZE
const int Quantum.Shape2D.BoxShape.SIZE = FP.SIZE + FPVector2.SIZE |
|
static |
The size of the struct in bytes.
◆ BroadRadius
FP Quantum.Shape2D.BoxShape.BroadRadius |
|
get |
The smallest radius of a circle centered at the box centroid that encloses the box.
◆ Extents
Vector that defines the distance from the box centroid to the furthest point in the positive direction of each axis.