#include <Vector2f.h>
◆ Vector2f() [1/2]
| hdps::Vector2f::Vector2f |
( |
| ) |
|
|
default |
◆ Vector2f() [2/2]
| constexpr hdps::Vector2f::Vector2f |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inlineconstexpr |
◆ add()
Adds the given vector to this vector.
- Parameters
-
◆ length()
| float hdps::Vector2f::length |
( |
| ) |
const |
Returns the magnitude of this vector.
- Returns
- the magnitude of this vector
◆ operator!=()
| constexpr bool hdps::Vector2f::operator!= |
( |
const Vector2f & |
v | ) |
const |
|
inlineconstexpr |
◆ operator*() [1/2]
◆ operator*() [2/2]
| constexpr Vector2f hdps::Vector2f::operator* |
( |
float |
scale | ) |
const |
|
inlineconstexpr |
◆ operator*=() [1/2]
◆ operator*=() [2/2]
| Vector2f & hdps::Vector2f::operator*= |
( |
float |
scale | ) |
|
◆ operator+() [1/2]
◆ operator+() [2/2]
| constexpr Vector2f hdps::Vector2f::operator+ |
( |
float |
value | ) |
const |
|
inlineconstexpr |
◆ operator+=()
◆ operator-() [1/3]
| constexpr Vector2f hdps::Vector2f::operator- |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator-() [2/3]
◆ operator-() [3/3]
| constexpr Vector2f hdps::Vector2f::operator- |
( |
float |
value | ) |
const |
|
inlineconstexpr |
◆ operator-=()
◆ operator/()
| constexpr Vector2f hdps::Vector2f::operator/ |
( |
float |
divisor | ) |
const |
|
inlineconstexpr |
◆ operator/=()
◆ operator==()
| constexpr bool hdps::Vector2f::operator== |
( |
const Vector2f & |
v | ) |
const |
|
inlineconstexpr |
◆ set()
| void hdps::Vector2f::set |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Sets the x and y components of this vector to the given parameters.
- Parameters
-
| x | the x-component of the vector |
| y | the y-component of the vector |
◆ sqrMagnitude()
| constexpr float hdps::Vector2f::sqrMagnitude |
( |
| ) |
const |
|
inlineconstexpr |
Returns the squared magnitude of this vector.
- Returns
- the squared magnitude of this vector
◆ str()
| std::string hdps::Vector2f::str |
( |
| ) |
const |
Returns a string representation of this vector.
- Returns
- the string representation
◆ sub()
Subtracts the given vector from this vector.
- Parameters
-
| v | the vector to be subtracted |
| float hdps::Vector2f::x {} |
| float hdps::Vector2f::y {} |
The documentation for this class was generated from the following files:
- D:/Work/ManiVault/DevBundle/allmain/source/core/HDPS/src/graphics/Vector2f.h
- D:/Work/ManiVault/DevBundle/allmain/source/core/HDPS/src/graphics/Vector2f.cpp