ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
section.hpp File Reference

One-dimensional interval (section) on a numeric line. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  toy::geometry::Section< T >
 One-dimensional interval [start, end] over a numeric endpoint type. More...

Namespaces

namespace  toy
 Root namespace containing all engine modules.
namespace  toy::geometry
 Geometry types and utilities: sections (intervals), circles, ellipses, and related APIs.

Concepts

concept  toy::geometry::SectionEndpoint
 Concept satisfied when T is an endpoint type allowed as toy::geometry::Section template parameter.

Functions

template<SectionEndpoint T>
 toy::geometry::Section (const T &, const T &) -> Section< T >
 Deduction guide: enables Section(a, b) without an explicit template argument when both arguments have the same toy::geometry::SectionEndpoint type.
template<SectionEndpoint T>
constexpr bool toy::geometry::operator== (const Section< T > &left, const Section< T > &right) noexcept
 Equality of two sections: exact comparison for integral and fixed-point, approximate for floating-point.
template<SectionEndpoint T>
constexpr bool toy::geometry::operator!= (const Section< T > &left, const Section< T > &right) noexcept
 Inequality of two sections.

Detailed Description

One-dimensional interval (section) on a numeric line.

Defines toy::geometry::Section and toy::geometry::SectionEndpoint.

Note
Included by geometry.hpp; do not include this file directly.