A 3-component vector structure (x, y, z) with standard math operations.
More...
#include <src/core/MathUtils.h>
A 3-component vector structure (x, y, z) with standard math operations.
◆ Vec3() [1/2]
| constexpr Core::Vec3::Vec3 |
( |
| ) |
|
|
inlineconstexpr |
◆ Vec3() [2/2]
| constexpr Core::Vec3::Vec3 |
( |
float |
_x, |
|
|
float |
_y, |
|
|
float |
_z |
|
) |
| |
|
inlineconstexpr |
◆ cross()
| constexpr Vec3 Core::Vec3::cross |
( |
const Vec3 & |
other | ) |
const |
|
inlineconstexprnoexcept |
◆ DistanceFromPoint()
| float Core::Vec3::DistanceFromPoint |
( |
const Core::Vec3 & |
other | ) |
const |
|
inline |
◆ dot()
| constexpr float Core::Vec3::dot |
( |
const Vec3 & |
other | ) |
const |
|
inlineconstexprnoexcept |
◆ length()
| float Core::Vec3::length |
( |
| ) |
const |
|
inline |
◆ normalize()
| Vec3 Core::Vec3::normalize |
( |
| ) |
const |
|
inline |
◆ operator*()
| constexpr Vec3 Core::Vec3::operator* |
( |
float |
scalar | ) |
const |
|
inlineconstexprnoexcept |
◆ operator+()
| constexpr Vec3 Core::Vec3::operator+ |
( |
const Vec3 & |
other | ) |
const |
|
inlineconstexprnoexcept |
◆ operator+=()
| constexpr Vec3 & Core::Vec3::operator+= |
( |
const Vec3 & |
other | ) |
|
|
inlineconstexprnoexcept |
◆ operator-()
| constexpr Vec3 Core::Vec3::operator- |
( |
const Vec3 & |
other | ) |
const |
|
inlineconstexprnoexcept |
◆ operator-=()
| constexpr Vec3 & Core::Vec3::operator-= |
( |
const Vec3 & |
other | ) |
|
|
inlineconstexprnoexcept |
◆ operator/()
| constexpr Vec3 Core::Vec3::operator/ |
( |
float |
scalar | ) |
const |
|
inlineconstexprnoexcept |
◆ print()
| void Core::Vec3::print |
( |
| ) |
const |
|
inline |
◆ SquaredDistanceFromPoint()
| float Core::Vec3::SquaredDistanceFromPoint |
( |
const Core::Vec3 & |
other | ) |
const |
|
inline |
◆ squaredLength()
| float Core::Vec3::squaredLength |
( |
| ) |
const |
|
inline |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Vec3 & |
vec |
|
) |
| |
|
friend |
The documentation for this struct was generated from the following file: