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::AreaTriangle Struct Reference

A set of 3 points located in the world forming a (hopefully sensible) triangle. More...

#include <spatial_query_basic_types.hpp>

Public Member Functions

bool isSensible () const
 Tests whether the points describing the triangle are sensible (as opposed to invalid, infinite, or degenerate).
 

Public Attributes

std::array< glm::vec3, 3 > mPoints {}
 The points of the triangle, where each point has 3 components.
 

Detailed Description

A set of 3 points located in the world forming a (hopefully sensible) triangle.

Member Function Documentation

◆ isSensible()

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

Tests whether the points describing the triangle are sensible (as opposed to invalid, infinite, or degenerate).

Return values
trueThe triangle is sensible;
falseThe triangle is not sensible;

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