gz/math/Vector2.hh
Vector2 operator+(const Vector2 &_v) const
Addition operator.
Definition: gz/math/Vector2.hh:253
const Vector2 operator/(const Vector2 &_v) const
Division operator.
Definition: gz/math/Vector2.hh:359
Vector2 Round()
Round to near whole number, return the result.
Definition: gz/math/Vector2.hh:130
bool operator!=(const Vector2 &_v) const
Not equal to operator.
Definition: gz/math/Vector2.hh:466
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
friend Vector2< T > operator+(const T _s, const Vector2< T > &_v)
Addition operators.
Definition: gz/math/Vector2.hh:282
const Vector2< T > & operator-=(T _s)
Subtraction assignment operator.
Definition: gz/math/Vector2.hh:347
Vector2 operator-() const
Negation operator.
Definition: gz/math/Vector2.hh:301
double Distance(const Vector2 &_pt) const
Calc distance to the given point.
Definition: gz/math/Vector2.hh:85
Vector2(const T &_x, const T &_y)
Constructor.
Definition: gz/math/Vector2.hh:58
T AbsDot(const Vector2< T > &_v) const
Return the absolute dot product of this vector and another vector. This is similar to the Dot functio...
Definition: gz/math/Vector2.hh:179
const Vector2 & operator*=(T _v)
Multiplication assignment operator.
Definition: gz/math/Vector2.hh:436
T & operator[](const std::size_t _index)
Array subscript operator.
Definition: gz/math/Vector2.hh:484
friend std::istream & operator>>(std::istream &_in, Vector2< T > &_pt)
Stream extraction operator.
Definition: gz/math/Vector2.hh:564
static const Vector2 NaN
math::Vector2(NaN, NaN, NaN)
Definition: gz/math/Vector2.hh:46
Vector2 Rounded() const
Get a rounded version of this vector.
Definition: gz/math/Vector2.hh:139
bool operator==(const Vector2 &_v) const
Equal to operator.
Definition: gz/math/Vector2.hh:459
T operator[](const std::size_t _index) const
Const-qualified array subscript operator.
Definition: gz/math/Vector2.hh:492
T Min() const
Get the minimum value in the vector.
Definition: gz/math/Vector2.hh:223
const Vector2 operator*(const Vector2 &_v) const
Multiplication operators.
Definition: gz/math/Vector2.hh:398
bool Equal(const Vector2 &_v, const T &_tol) const
Equality test with tolerance.
Definition: gz/math/Vector2.hh:449
static const Vector2< T > One
math::Vector2(1, 1)
Definition: gz/math/Vector2.hh:43
const Vector2 operator/(T _v) const
Division operator.
Definition: gz/math/Vector2.hh:379
T Length() const
Returns the length (magnitude) of the vector.
Definition: gz/math/Vector2.hh:93
Vector2 operator-(const Vector2 &_v) const
Subtraction operator.
Definition: gz/math/Vector2.hh:309
T Max() const
Get the maximum value in the vector.
Definition: gz/math/Vector2.hh:216
friend std::ostream & operator<<(std::ostream &_out, const Vector2< T > &_pt)
Stream extraction operator.
Definition: gz/math/Vector2.hh:544
bool IsFinite() const
See if a point is finite (e.g., not nan)
Definition: gz/math/Vector2.hh:473
void Min(const Vector2< T > &_v)
Set this vector's components to the minimum of itself and the passed in vector.
Definition: gz/math/Vector2.hh:208
T isfinite(T... args)
T Sum() const
Return the sum of the values.
Definition: gz/math/Vector2.hh:77
Vector2 Abs() const
Get the absolute value of the vector.
Definition: gz/math/Vector2.hh:165
void Normalize()
Normalize the vector length.
Definition: gz/math/Vector2.hh:108
static const Vector2< T > Zero
math::Vector2(0, 0)
Definition: gz/math/Vector2.hh:40
STL class.
Vector2< T > operator-(const T _s) const
Subtraction operators.
Definition: gz/math/Vector2.hh:328
const Vector2 & operator/=(T _v)
Division operator.
Definition: gz/math/Vector2.hh:387
friend Vector2< T > operator-(const T _s, const Vector2< T > &_v)
Subtraction operators.
Definition: gz/math/Vector2.hh:338
T SquaredLength() const
Returns the square of the length (magnitude) of the vector.
Definition: gz/math/Vector2.hh:100
T clamp(T _v, T _min, T _max)
Simple clamping function.
Definition: gz/math/Helpers.hh:406
T setf(T... args)
const Vector2 & operator/=(const Vector2 &_v)
Division operator.
Definition: gz/math/Vector2.hh:368
Vector2< T > operator+(const T _s) const
Addition operators.
Definition: gz/math/Vector2.hh:272
Vector2 Normalized() const
Returns a normalized vector.
Definition: gz/math/Vector2.hh:121
const friend Vector2 operator*(const T _s, const Vector2 &_v)
Scalar left multiplication operators.
Definition: gz/math/Vector2.hh:427
void Set(T _x, T _y)
Set the contents of the vector.
Definition: gz/math/Vector2.hh:149
T min(T... args)
Vector2 & operator=(const Vector2 &_v)
Assignment operator.
Definition: gz/math/Vector2.hh:231
T fail(T... args)
void Correct()
Corrects any nan values.
Definition: gz/math/Vector2.hh:186
void Max(const Vector2< T > &_v)
Set this vector's components to the maximum of itself and the passed in vector.
Definition: gz/math/Vector2.hh:199
static const size_t IGN_ZERO_SIZE_T
size_t type with a value of 0
Definition: gz/math/Helpers.hh:227
T nearbyint(T... args)
static const size_t IGN_ONE_SIZE_T
size_t type with a value of 1
Definition: gz/math/Helpers.hh:230
const Vector2 & operator=(T _v)
Assignment operator.
Definition: gz/math/Vector2.hh:242
const Vector2 & operator-=(const Vector2 &_v)
Subtraction assignment operator.
Definition: gz/math/Vector2.hh:317
T Dot(const Vector2< T > &_v) const
Get the dot product of this vector and _v.
Definition: gz/math/Vector2.hh:158
bool operator<(const Vector2< T > &_pt) const
Less than operator.
Definition: gz/math/Vector2.hh:554
T max(T... args)
STL class.
const Vector2 & operator*=(const Vector2 &_v)
Multiplication assignment operator.
Definition: gz/math/Vector2.hh:407
const Vector2 & operator+=(const Vector2 &_v)
Addition assignment operator.
Definition: gz/math/Vector2.hh:261
const Vector2< T > & operator+=(const T _s)
Addition assignment operator.
Definition: gz/math/Vector2.hh:291
std::ostream & operator<<(std::ostream &_out, const Graph< VV, EE, UndirectedEdge< EE >> &_g)
Partial template specification for undirected edges.
Definition: gz/math/graph/Graph.hh:745
const Vector2 operator*(T _v) const
Multiplication operators.
Definition: gz/math/Vector2.hh:418
Vector2(const Vector2< T > &_v)
Copy constructor.
Definition: gz/math/Vector2.hh:66