Skip to content

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.

Browse the math module

#include "engine/math/circle.h" · namespace mattmath

struct Circle : public Shape

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() = default;
Circle(const Circle&) = default;
Circle(const mattmath::Vector2F& center, float radius);
Circle(float x, float y, float radius);

bounding_box · shape_type · offset · inflate

Section titled “bounding_box · shape_type · offset · inflate”
mattmath::RectangleF bounding_box() const override;
ShapeType shape_type() const override;
void offset(const mattmath::Vector2F& amount) override;
void inflate(float amount) override;
bool operator==(const Circle& other) const;
bool operator!=(const Circle& other) const;
mattmath::Vector2F center() const override;
float radius() const;

Named in the public declarations above: RectangleF, Shape, ShapeType, Vector2F.

The files that include this header directly. A file can also reach it through another header.

Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.