Go to the documentation of this file.
64 float rr =
b2Dot(r, r);
65 float sigma = c * c - rr * b;
74 float a = -(c +
b2Sqrt(sigma));
int32 GetChildCount() const override
float mass
The mass of the shape, usually in kilograms.
void * Allocate(int32 size)
Allocate memory. This will use b2Alloc if the size is larger than b2_maxBlockSize.
float Normalize()
Convert this vector into a unit vector. Returns the length.
b2Vec2 b2Mul(const b2Mat22 &A, const b2Vec2 &v)
void Set(float x_, float y_)
Set this vector to some specified coordinates.
b2Vec2 upperBound
the upper vertex
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const override
bool TestPoint(const b2Transform &transform, const b2Vec2 &p) const override
Implement b2Shape.
b2Vec2 center
The position of the shape's centroid relative to the shape's origin.
float b2Dot(const b2Vec2 &a, const b2Vec2 &b)
Perform the dot product on two vectors.
void ComputeAABB(b2AABB *aabb, const b2Transform &transform, int32 childIndex) const override
b2Shape * Clone(b2BlockAllocator *allocator) const override
Implement b2Shape.
An axis aligned bounding box.
float I
The rotational inertia of the shape about the local origin.
This holds the mass data computed for a shape.
void ComputeMass(b2MassData *massData, float density) const override
b2Vec2 lowerBound
the lower vertex
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:06