Global utilities and common third party includes.
More...
#include <stdio.h>
#include <iostream>
#include <limits>
#include <memory>
#include <random>
#include <cmath>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/norm.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glm/gtc/epsilon.hpp>
Go to the source code of this file.
|
using | glm::point3 = glm::vec3 |
|
using | glm::color = glm::vec3 |
|
|
const float | kPI = glm::pi<float>() |
|
const float | kINFINITY = std::numeric_limits<float>::infinity() |
|
Global utilities and common third party includes.
◆ operator<<() [1/6]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const glm::mat3 & |
m |
|
) |
| |
Print a matrix.
std::cout << mat3(1.0) << std::endl;
◆ operator<<() [2/6]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const glm::mat4 & |
m |
|
) |
| |
Print a matrix.
std::cout << mat4(1.0) << std::endl;
◆ operator<<() [3/6]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const glm::quat & |
v |
|
) |
| |
Print a quaternion.
quat q(m);
std::cout << q << std::endl;
◆ operator<<() [4/6]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const glm::vec2 & |
v |
|
) |
| |
Print a vector.
std::cout << vec2(-2.0, 1.0) << std::endl;
◆ operator<<() [5/6]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const glm::vec3 & |
v |
|
) |
| |
Print a vector.
std::cout << vec3(1.0, -3.0, 50.0) << std::endl;
◆ operator<<() [6/6]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const glm::vec4 & |
v |
|
) |
| |
Print a vector.
std::cout << vec4(0.2, 0.3, 0.8, 1.0) << std::endl;
◆ randomHemisphere()
glm::vec3 agl::randomHemisphere |
( |
const glm::vec3 & |
normal | ) |
|
|
inline |
◆ randomUnitVector()
glm::vec3 agl::randomUnitVector |
( |
| ) |
|
|
inline |