Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
spatial_query_basic_types.hpp File Reference

Classes and structs representing data related to the engine's spatial query system (the precursor to a full-fledged physics system). More...

#include <cmath>
#include <array>
#include <glm/glm.hpp>

Go to the source code of this file.

Classes

struct  ToyMaker::VolumeBase_
 The base class of all spatial query volumes. More...
 
struct  ToyMaker::Volume< TDerived >
 
struct  ToyMaker::VolumeBox
 Holds the parameters describing the spatial query volume of a simple three-dimensionsal box. More...
 
struct  ToyMaker::VolumeCapsule
 Holds the parameters describing the spatial query volume of a simple three-dimensionsal capsule (or pill, or whatever you like). More...
 
struct  ToyMaker::VolumeSphere
 Holds parameters describing a spherical spatial query volume. More...
 
struct  ToyMaker::AreaTriangle
 A set of 3 points located in the world forming a (hopefully sensible) triangle. More...
 
struct  ToyMaker::AreaCircle
 A set of numbers representing a single circle situated somewhere in the world. More...
 
struct  ToyMaker::Ray
 A set of numbers describing a ray with its source at some finite point in the world, projected in a direction for some positive length. More...
 
struct  ToyMaker::Plane
 A set of numbers describing a plane situated somewhere in the world. More...
 

Namespaces

namespace  ToyMaker
 Namespace containing all class definitions and functions related to the ToyMaker engine.
 

Typedefs

using ToyMaker::BoxCorner = uint8_t
 Type used to represent the name of the corner of a box.
 

Enumerations

enum  ToyMaker::BoxCornerSpecifier : BoxCorner { RIGHT =0x1 , TOP =0x2 , FRONT =0x4 }
 Enum values correspond to bits on a BoxCorner which help specify which side of the box on each axis is being indicated.
 

Functions

bool ToyMaker::isFinite (float number)
 Tests whether a given number is finite.
 
bool ToyMaker::isFinite (const glm::vec3 &vector)
 Tests whether a set of 3 numbers is finite.
 
bool ToyMaker::isPositive (float number)
 Tests whether a number is positive.
 
bool ToyMaker::isPositive (const glm::vec3 &vector)
 Tests whether a set of 3 numbers is positive.
 
bool ToyMaker::isNonNegative (float number)
 Tests whether a number is non-negative.
 
bool ToyMaker::isNonNegative (const glm::vec3 &vector)
 Tests whether a set of numbers is non-negative.
 

Detailed Description

Classes and structs representing data related to the engine's spatial query system (the precursor to a full-fledged physics system).

Author
Zoheb Shujauddin (zoheb.nosp@m.2424.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
Version
0.3.2
Date
2025-09-08