jGL
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jGL::WorldBoundingBox Class Reference

A world space bounding box. More...

#include <primitive.h>

Inheritance diagram for jGL::WorldBoundingBox:
Inheritance graph
[legend]
Collaboration diagram for jGL::WorldBoundingBox:
Collaboration graph
[legend]

Public Member Functions

 WorldBoundingBox ()
 
 WorldBoundingBox (const std::array< glm::tvec2< float >, 4 > &v)
 
Transform toTransform ()
 Returns a Transform for ShapeRenderer.
 
- Public Member Functions inherited from jGL::BoundingBox< float >
 BoundingBox ()
 
 BoundingBox (const std::array< glm::tvec2< float >, 4 > &v)
 
bool in (float x, float y)
 If the point (x, y) is in the box.
 

Additional Inherited Members

- Public Attributes inherited from jGL::BoundingBox< float >
std::array< glm::tvec2< float >, 4 > vertices
 Vertices of bounding box.
 

Detailed Description

A world space bounding box.

Constructor & Destructor Documentation

◆ WorldBoundingBox() [1/2]

jGL::WorldBoundingBox::WorldBoundingBox ( )
inline

◆ WorldBoundingBox() [2/2]

jGL::WorldBoundingBox::WorldBoundingBox ( const std::array< glm::tvec2< float >, 4 > &  v)
inline

Member Function Documentation

◆ toTransform()

Transform jGL::WorldBoundingBox::toTransform ( )
inline

Returns a Transform for ShapeRenderer.

Returns
Transform

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