ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
Loading...
Searching...
No Matches
ToyMaker::AreaTriangle Struct Reference

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

#include <types.hpp>

Public Member Functions

bool isSensible () const
 Tests whether the points describing the triangle are sensible (as opposed to invalid or infinite).
bool isPositiveStrict () const
 Tests whether the points of this triangle encapsulate some area in space.

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

◆ isPositiveStrict()

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

Tests whether the points of this triangle encapsulate some area in space.

Return values
trueThis triangle is non-trivial, and covers some definite space
falseThis triangle is trivial, degenerate, and covers no real area

◆ isSensible()

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

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

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

The documentation for this struct was generated from the following file:
  • ToyMaker_Main/include/toymaker/engine/spatial_query/types.hpp