#include "vec3d.h"
◆ Vec2D() [1/2]
Vec2D::Vec2D |
( |
float |
x0 = 0.0f , |
|
|
float |
y0 = 0.0f |
|
) |
| |
|
inline |
float x
Definition vec3d.h:150
float y
Definition vec3d.h:150
◆ Vec2D() [2/2]
Vec2D::Vec2D |
( |
const Vec2D & |
v | ) |
|
|
inline |
◆ length()
float Vec2D::length |
( |
| ) |
const |
|
inline |
218 {
219 return std::sqrt(
x *
x +
y *
y);
220 }
References x, and y.
Referenced by normalize().
◆ lengthSquared()
float Vec2D::lengthSquared |
( |
| ) |
const |
|
inline |
213 {
214 return x *
x +
y *
y;
215 }
References x, and y.
◆ normalize()
Vec2D & Vec2D::normalize |
( |
| ) |
|
|
inline |
223 {
225 return *this;
226 }
float length() const
Definition vec3d.h:217
Vec2D & operator*=(float d)
Definition vec3d.h:205
References length(), and operator*=().
Referenced by operator~().
◆ operator float *()
Vec2D::operator float * |
( |
| ) |
|
|
inline |
242 {
243 return (float*)this;
244 }
◆ operator*() [1/2]
float Vec2D::operator* |
( |
const Vec2D & |
v | ) |
const |
|
inline |
176 {
177 return x * v.
x +
y * v.
y;
178 }
References x, and y.
◆ operator*() [2/2]
Vec2D Vec2D::operator* |
( |
float |
d | ) |
const |
|
inline |
181 {
183 return r;
184 }
References x, and y.
◆ operator*=()
Vec2D & Vec2D::operator*= |
( |
float |
d | ) |
|
|
inline |
206 {
209 return *this;
210 }
References x, and y.
Referenced by normalize().
◆ operator+()
164 {
166 return r;
167 }
References x, and y.
◆ operator+=()
192 {
195 return *this;
196 }
References x, and y.
◆ operator-()
170 {
172 return r;
173 }
References x, and y.
◆ operator-=()
199 {
202 return *this;
203 }
References x, and y.
◆ operator=()
157 {
160 return *this;
161 }
References x, and y.
◆ operator~()
Vec2D Vec2D::operator~ |
( |
| ) |
const |
|
inline |
229 {
231 r.normalize();
232 return r;
233 }
References normalize().
◆ operator*
187 {
188 return v * d;
189 }
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
in, |
|
|
Vec2D & |
v |
|
) |
| |
|
friend |
236 {
238 return in;
239 }
The documentation for this class was generated from the following file:
- azerothcore-wotlk/src/tools/vmap4_extractor/vec3d.h