#include <vector2d_f.h>
Public Member Functions | |
| constexpr | Vector2dF () |
| constexpr | Vector2dF (float x, float y) |
| constexpr float | x () const |
| void | set_x (float x) |
| constexpr float | y () const |
| void | set_y (float y) |
| bool | IsZero () const |
| void | Add (const Vector2dF &other) |
| void | Subtract (const Vector2dF &other) |
| void | operator+= (const Vector2dF &other) |
| void | operator-= (const Vector2dF &other) |
| void | SetToMin (const Vector2dF &other) |
| void | SetToMax (const Vector2dF &other) |
| double | LengthSquared () const |
| float | Length () const |
| void | Scale (float scale) |
| void | Scale (float x_scale, float y_scale) |
| std::string | ToString () const |
Definition at line 21 of file vector2d_f.h.
|
inlineconstexpr |
Definition at line 23 of file vector2d_f.h.
|
inlineconstexpr |
Definition at line 24 of file vector2d_f.h.
| void gfx::Vector2dF::Add | ( | const Vector2dF & | other | ) |
Definition at line 21 of file vector2d_f.cc.
Referenced by gfx::operator+(), and gfx::operator-().
| bool gfx::Vector2dF::IsZero | ( | ) | const |
Definition at line 17 of file vector2d_f.cc.
Referenced by gfx::TEST().
| float gfx::Vector2dF::Length | ( | ) | const |
Definition at line 35 of file vector2d_f.cc.
References LengthSquared().
Referenced by gfx::TEST().
| double gfx::Vector2dF::LengthSquared | ( | ) | const |
Definition at line 31 of file vector2d_f.cc.
Referenced by Length(), and gfx::TEST().
|
inline |
Definition at line 40 of file vector2d_f.h.
|
inline |
Definition at line 41 of file vector2d_f.h.
|
inline |
Definition at line 59 of file vector2d_f.h.
References Scale().
Referenced by Scale(), gfx::ScaleVector2d(), and gfx::TEST().
| void gfx::Vector2dF::Scale | ( | float | x_scale, |
| float | y_scale | ||
| ) |
Definition at line 39 of file vector2d_f.cc.
|
inline |
|
inline |
|
inline |
Definition at line 48 of file vector2d_f.h.
Referenced by gfx::TEST().
|
inline |
Definition at line 43 of file vector2d_f.h.
Referenced by gfx::TEST().
| void gfx::Vector2dF::Subtract | ( | const Vector2dF & | other | ) |
Definition at line 26 of file vector2d_f.cc.
| std::string gfx::Vector2dF::ToString | ( | ) | const |
Definition at line 13 of file vector2d_f.cc.
References base::StringPrintf().
Referenced by gfx::PrintTo(), and gfx::TEST().
|
inlineconstexpr |
Definition at line 26 of file vector2d_f.h.
Referenced by gfx::CrossProduct(), gfx::DotProduct(), gfx::operator+(), gfx::PointF::operator+=(), gfx::operator-(), gfx::operator-(), gfx::PointF::operator-=(), gfx::operator==(), gfx::PointAtOffsetFromOrigin(), gfx::TEST(), gfx::ToCeiledVector2d(), gfx::ToFlooredVector2d(), and gfx::ToRoundedVector2d().
|
inlineconstexpr |
Definition at line 29 of file vector2d_f.h.
Referenced by gfx::CrossProduct(), gfx::DotProduct(), gfx::operator+(), gfx::PointF::operator+=(), gfx::operator-(), gfx::operator-(), gfx::PointF::operator-=(), gfx::operator==(), gfx::PointAtOffsetFromOrigin(), gfx::TEST(), gfx::ToCeiledVector2d(), gfx::ToFlooredVector2d(), and gfx::ToRoundedVector2d().