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
ToyMaker::Ray Struct Reference

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...

#include <spatial_query_basic_types.hpp>

Public Member Functions

bool isSensible () const
 Tests whether the ray is sensible (as opposed to invalid or degenerate).
 

Public Attributes

glm::vec3 mStart { 0.f }
 A point representing the starting point of the ray.
 
glm::vec3 mDirection { 0.f, 0.f, -1.f }
 The direction the ray is pointing in.
 
float mLength { std::numeric_limits<float>::infinity() }
 The length of the ray, infinite by default.
 

Detailed Description

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.

Member Function Documentation

◆ isSensible()

bool ToyMaker::Ray::isSensible ( ) const
inline

Tests whether the ray is sensible (as opposed to invalid or degenerate).

Return values
trueThe ray is sensible;
falseThe ray isn't sensible;

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