TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::model::Box Struct Reference

#include <geom/point.hpp>

Public Member Functions

constexpr bool empty () const
constexpr void add (Point p)
constexpr void add (const Box &b)
constexpr Box inflated (Coord d) const
constexpr bool intersects (const Box &b) const

Public Attributes

Coord x0 = 0
Coord y0 = 0
Coord x1 = -1
Coord y1 = -1
 empty when x1 < x0

Detailed Description

Definition at line 20 of file point.hpp.

Member Function Documentation

◆ add() [1/2]

void tmk::geom::Box::add ( const Box & b)
inlineconstexpr

Definition at line 30 of file point.hpp.

◆ add() [2/2]

void tmk::geom::Box::add ( Point p)
inlineconstexpr

Definition at line 23 of file point.hpp.

◆ empty()

bool tmk::geom::Box::empty ( ) const
inlineconstexpr

Definition at line 22 of file point.hpp.

◆ inflated()

Box tmk::geom::Box::inflated ( Coord d) const
inlineconstexpr

Definition at line 35 of file point.hpp.

◆ intersects()

bool tmk::geom::Box::intersects ( const Box & b) const
inlineconstexpr

Definition at line 36 of file point.hpp.

Member Data Documentation

◆ x0

Definition at line 21 of file point.hpp.

◆ x1

Definition at line 21 of file point.hpp.

◆ y0

Definition at line 21 of file point.hpp.

◆ y1

empty when x1 < x0

Definition at line 21 of file point.hpp.


The documentation for this struct was generated from the following file: