Level H Engine
Enumerations | Functions
Primitives Namespace Reference

A namespace for generating primitves. More...

Enumerations

enum  PrimativeType { TOURUS }
 

Functions

std::vector< float > generateTourus ()
 A function to generate a tourus. More...
 
Vec3 torus (float u, float v)
 A function to generate a point of a tourus. More...
 

Detailed Description

A namespace for generating primitves.

Enumeration Type Documentation

◆ PrimativeType

Enumerator
TOURUS 

Function Documentation

◆ generateTourus()

std::vector< float > Primitives::generateTourus ( )

A function to generate a tourus.

Returns
A vector of floats.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ torus()

Vec3 Primitives::torus ( float  u,
float  v 
)

A function to generate a point of a tourus.

Parameters
uThe u value.
vThe v value.
Returns
A pooint of the tourus.
Here is the caller graph for this function: