CMSC23700 Common Code Library
Support code for CS23700 programming projects
Loading...
Searching...
No Matches
cs237-aabb.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cs237::__detail::AABB< T >
 Axis-Aligned Bounding Box parameterized over the scalar type. More...
 

Namespaces

namespace  cs237
 
namespace  cs237::__detail
 

Macros

#define DELTA(A)
 

Typedefs

using cs237::AABBf_t = __detail::AABB< float >
 Single-precision axis-aligned bounding boxes.
 
using cs237::AABBd_t = __detail::AABB< double >
 Double-precision axis-aligned bounding boxes.
 

Functions

template<typename T >
std::ostream & cs237::__detail::operator<< (std::ostream &s, __detail::AABB< T > const &bb)
 print the axis-aligned bounding box to the output stream
 
template<typename T >
AABB< Tcs237::__detail::operator+ (AABB< T > const &bb1, AABB< T > &bb2)
 

Detailed Description

Support code for CMSC 23700 Autumn 2023.

This file implements axis-aligned bounding boxes.

Author
John Reppy

Macro Definition Documentation

◆ DELTA

#define DELTA (   A)
Value:
(pt.A < this->_min.A) \
? (this->_min.A - pt.A) \
: ((this->_max.A < pt.A) ? (pt.A - this->_max.A) : T(0))