Defines a 2D capsule in its local space. In order to create a Shape2D of type Shape2DType.Capsule, use Shape2D.CreateCapsule.
- See also
- Shape2D, Shape2DType
More...
|
const int | SIZE = FP.SIZE * 3 |
| The size of the struct in bytes. More...
|
|
Defines a 2D capsule in its local space. In order to create a Shape2D of type Shape2DType.Capsule, use Shape2D.CreateCapsule.
- See also
- Shape2D, Shape2DType
◆ Serialize()
Serializes a CapsuleShape into an instance of IDeterministicFrameSerializer.
- Parameters
-
ptr | The pointer to the CapsuleShape. |
serializer | The instance of IDeterministicFrameSerializer. |
◆ GetHashCode()
override Int32 Quantum.Shape2D.CapsuleShape.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.CapsuleShape.SIZE = FP.SIZE * 3 |
|
static |
The size of the struct in bytes.
◆ Radius
FP Quantum.Shape2D.CapsuleShape.Radius |
The radius of the capsule's top and bottom semi-spheres.
◆ Extent
FP Quantum.Shape2D.CapsuleShape.Extent |
The distance from the capsule's centroid to the center of the top or bottom semi-sphere.
- See also
- Height
◆ Diameter
FP Quantum.Shape2D.CapsuleShape.Diameter => Radius * 2 |
Twice the value of the capsule Radius.
◆ Height
The distance from the bottommost to the topmost points in the capsule along its elongated axis.