#include <UnitVec2.hpp>
◆ data_type
◆ UnitVec2() [1/2]
constexpr box2d::UnitVec2::UnitVec2 |
( |
| ) |
|
|
inlinenoexcept |
◆ UnitVec2() [2/2]
UnitVec2::UnitVec2 |
( |
const Angle |
angle | ) |
|
|
explicitnoexcept |
◆ Absolute()
constexpr UnitVec2 box2d::UnitVec2::Absolute |
( |
| ) |
const |
|
inlinenoexcept |
◆ cos()
constexpr auto box2d::UnitVec2::cos |
( |
| ) |
const |
|
inlinenoexcept |
◆ FlipX()
constexpr UnitVec2 box2d::UnitVec2::FlipX |
( |
| ) |
const |
|
inlinenoexcept |
◆ FlipXY()
constexpr UnitVec2 box2d::UnitVec2::FlipXY |
( |
| ) |
const |
|
inlinenoexcept |
◆ FlipY()
constexpr UnitVec2 box2d::UnitVec2::FlipY |
( |
| ) |
const |
|
inlinenoexcept |
◆ Get()
◆ GetBottom()
static constexpr UnitVec2 box2d::UnitVec2::GetBottom |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ GetDefaultFallback()
static constexpr UnitVec2 box2d::UnitVec2::GetDefaultFallback |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ GetFwdPerpendicular()
constexpr UnitVec2 box2d::UnitVec2::GetFwdPerpendicular |
( |
| ) |
const |
|
inlinenoexcept |
Gets a vector clockwise (forward-clockwise) perpendicular to this vector.
This returns the unit vector (y, -x).
- Returns
- A clockwise 90-degree rotation of this vector.
- See also
- GetRevPerpendicular.
◆ GetLeft()
static constexpr UnitVec2 box2d::UnitVec2::GetLeft |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ GetRevPerpendicular()
constexpr UnitVec2 box2d::UnitVec2::GetRevPerpendicular |
( |
| ) |
const |
|
inlinenoexcept |
Gets a vector counter-clockwise (reverse-clockwise) perpendicular to this vector.
This returns the unit vector (-y, x).
- Returns
- A counter-clockwise 90-degree rotation of this vector.
- See also
- GetFwdPerpendicular.
◆ GetRight()
static constexpr UnitVec2 box2d::UnitVec2::GetRight |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ GetTop()
static constexpr UnitVec2 box2d::UnitVec2::GetTop |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ GetX()
constexpr auto box2d::UnitVec2::GetX |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetY()
constexpr auto box2d::UnitVec2::GetY |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetZero()
static constexpr UnitVec2 box2d::UnitVec2::GetZero |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ operator+()
constexpr UnitVec2 box2d::UnitVec2::operator+ |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator-()
constexpr UnitVec2 box2d::UnitVec2::operator- |
( |
| ) |
const |
|
inlinenoexcept |
◆ Rotate()
◆ sin()
constexpr auto box2d::UnitVec2::sin |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: