Circle
Generated from engine/math/circle.h at 862e08b. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
#include "engine/math/circle.h" · namespace mattmath
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
Section titled “Circle”Circle(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;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.
tests/collision/narrow_phase_tests.cpptests/math/ericson_math_tests.cpp,shape_intersect_tests.cpp
Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.