Normalized 2D vector.
More...
#include <le2d/nvec2.hpp>
◆ explicit()
| le::nvec2::explicit |
( |
false |
| ) |
|
Initial value:{}
auto operator-() const ->
nvec2 {
return {InPlace{}, {-x, -
y}}; }
static auto from_radians(float r) -> nvec2
Normalized 2D vector.
Definition nvec2.hpp:11
explicit(false) nvec2(glm float y
Definition nvec2.hpp:16
◆ normal_or()
| static auto le::nvec2::normal_or |
( |
glm::vec2 |
xy, |
|
|
glm::vec2 |
fallback |
|
) |
| -> nvec2 |
|
static |
◆ rotate()
| void le::nvec2::rotate |
( |
float |
radians | ) |
|
◆ rotated()
| auto le::nvec2::rotated |
( |
float |
radians | ) |
const -> nvec2 |
◆ to_radians()
| auto le::nvec2::to_radians |
( |
| ) |
const -> float |
Initial value:{}
auto operator-() const ->
nvec2 {
return {InPlace{}, {-x, -
y}}; }
static auto from_radians(float r) -> nvec2
The documentation for this class was generated from the following file: