#include <definitions.hpp>
A struct which holds an x and y float. Used for a lot of things across Calamity Engine.
◆ Vector2() [1/4]
◆ Vector2() [2/4]
| Vector2::Vector2 |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
◆ Vector2() [3/4]
| Vector2::Vector2 |
( |
const b2Vec2 & |
v | ) |
|
|
inlineexplicit |
◆ Vector2() [4/4]
| Vector2::Vector2 |
( |
const SDL_FPoint & |
v | ) |
|
|
inlineexplicit |
◆ distanceTo()
| float Vector2::distanceTo |
( |
const Vector2 & |
other | ) |
const |
|
inline |
◆ operator b2Vec2()
| Vector2::operator b2Vec2 |
( |
| ) |
const |
|
inline |
◆ operator!=()
| bool Vector2::operator!= |
( |
Vector2 |
o | ) |
const |
|
inline |
◆ operator*() [1/2]
| Vector2 Vector2::operator* |
( |
float |
s | ) |
const |
|
inline |
◆ operator*() [2/2]
◆ operator+()
◆ operator-()
◆ operator/() [1/2]
| Vector2 Vector2::operator/ |
( |
float |
s | ) |
const |
|
inline |
◆ operator/() [2/2]
◆ operator==()
| bool Vector2::operator== |
( |
Vector2 |
o | ) |
const |
|
inline |
◆ serialize()
template<class Archive >
| void Vector2::serialize |
( |
Archive & |
ar | ) |
|
|
inline |
The documentation for this struct was generated from the following file: