Circle
Generated from engine/math/circle.h at f525bc6. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
Audience: game code.
#include "engine/math/circle.h" · namespace labrador
struct Circle
Section titled “struct Circle”Private, unlike RectangleF's and Triangle's data, because Shape's polymorphic accessor is center() and a field of that name cannot coexist with it. radius() is here to keep the pair symmetrical.
Circle · operator=
Section titled “Circle · operator=”Circle(const Circle&) = default;Circle& operator=(const Circle&) = default;Circle(float x, float y, float radius);bounding_box · shape_type · offset · inflate
Section titled “bounding_box · shape_type · offset · inflate”void inflate(float amount) override;operator== · operator!=
Section titled “operator== · operator!=”bool operator!=(const Circle& other) const;center · radius
Section titled “center · radius”float radius() const;is_valid
Section titled “is_valid”bool is_valid() const;Whether the centre and radius are finite and the radius is not negative. A zero radius is a point and is valid. The constructors and inflate accept any radius; the circle predicates in intersects.h and ericson_math.h answer false for a circle that is not valid.
Related types
Section titled “Related types”Named in the public declarations above: RectangleF, Shape, ShapeType, Vector2F.
In the samples and tests
Section titled “In the samples and tests”The files that include this header directly. A file can also reach it through another header.
samples/collision/arena_tests.cppsamples/components/shape_outline.cpp,shape_outline_null_tests.cpp,shape_outline_tests.cpptests/collision/broad_phase_tests.cpp,contacts_tests.cpp,finite_shape_tests.cpp,narrow_phase_tests.cpptests/math/ericson_math_tests.cpp,shape_intersect_tests.cpp
Explained in
Section titled “Explained in”Documentation for Labrador v0.4.0. Built from Labrador f525bc6 of 2026-11-17.