Quad
Generated from engine/math/quad.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/quad.h" · namespace mattmath
struct Quad
Section titled “struct Quad”A quadrilateral with four points, ordered clockwise starting from the top left.
Quad(const Quad&) = default; const Vector2F& point3, const Vector2F& point4);bounding_box · shape_type · offset · inflate
Section titled “bounding_box · shape_type · offset · inflate”void inflate(float amount) override;is_valid
Section titled “is_valid”bool is_valid() const;point_0 · point_1 · point_2 · point_3 · set_point_0 · set_point_1 · set_point_2 · set_point_3
Section titled “point_0 · point_1 · point_2 · point_3 · set_point_0 · set_point_1 · set_point_2 · set_point_3”const Point2F& point_0() const;const Point2F& point_1() const;const Point2F& point_2() const;const Point2F& point_3() const;void set_point_0(const Point2F& point);void set_point_1(const Point2F& point);void set_point_2(const Point2F& point);void set_point_3(const Point2F& point);edge_0 · edge_1 · edge_2 · edge_3 · edges
Section titled “edge_0 · edge_1 · edge_2 · edge_3 · edges”Segment edge_1() const;Segment edge_2() const;Segment edge_3() const;std::array<Segment, 4> edges() const;triangle_0 · triangle_1 · triangles
Section titled “triangle_0 · triangle_1 · triangles”Triangle triangle_1() const;std::array<Triangle, 2> triangles() const;operator== · operator!=
Section titled “operator== · operator!=”bool operator!=(const Quad& other) const;center
Section titled “center”Related types
Section titled “Related types”Named in the public declarations above: RectangleF, RectangleRotated, Segment, Shape, ShapeType, Triangle, 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/inflate_tests.cpp,quad_tests.cpp,rectanglef_tests.cpp,shape_intersect_tests.cpp,shape_tests.cpp
Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.