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

A set of numbers describing a plane situated somewhere in the world. More...

#include <types.hpp>

Public Member Functions

bool isSensible () const
 Tests whether the plane described is sensible (as opposed to invalid, infinite, or degenerate).
bool isPositiveStrict () const
 Same as Plane::isSensible().

Public Attributes

glm::vec3 mPointOnPlane { 0.f }
 A known point on the plane.
glm::vec3 mNormal { 0.f, 0.f, -1.f }
 A vector normal to the plane.

Detailed Description

A set of numbers describing a plane situated somewhere in the world.

Member Function Documentation

◆ isPositiveStrict()

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

Same as Plane::isSensible().

See also
Plane::isSensible()
Return values
truePlane is sensible.
falsePlane isn't sensible.

◆ isSensible()

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

Tests whether the plane described is sensible (as opposed to invalid, infinite, or degenerate).

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

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