gz/math/Vector4.hh
const Vector4< T > & operator/=(T _v)
Division operator.
Definition: gz/math/Vector4.hh:462
T max_element(T... args)
void Round()
Round to near whole number.
Definition: gz/math/Vector4.hh:123
bool operator!=(const Vector4< T > &_pt) const
Not equal to operator.
Definition: gz/math/Vector4.hh:574
Vector4< T > operator-(const Vector4< T > &_v) const
Subtraction operator.
Definition: gz/math/Vector4.hh:365
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
T Distance(const Vector4< T > &_pt) const
Calc distance to the given point.
Definition: gz/math/Vector4.hh:84
static const size_t IGN_THREE_SIZE_T
size_t type with a value of 3
Definition: gz/math/Helpers.hh:236
static const Vector4< T > Zero
math::Vector4(0, 0, 0, 0)
Definition: gz/math/Vector4.hh:41
T Length() const
Returns the length (magnitude) of the vector.
Definition: gz/math/Vector4.hh:106
const Vector4< T > operator*(T _v) const
Multiplication operators.
Definition: gz/math/Vector4.hh:519
bool IsFinite() const
See if a point is finite (e.g., not nan)
Definition: gz/math/Vector4.hh:581
T operator[](const std::size_t _index) const
Const-qualified array subscript operator.
Definition: gz/math/Vector4.hh:604
T Min() const
Get the minimum value in the vector.
Definition: gz/math/Vector4.hh:259
void Max(const Vector4< T > &_v)
Set this vector's components to the maximum of itself and the passed in vector.
Definition: gz/math/Vector4.hh:231
const Vector4< T > & operator+=(const Vector4< T > &_v)
Addition operator.
Definition: gz/math/Vector4.hh:310
const Vector4< T > operator/(const Vector4< T > &_v) const
Division assignment operator.
Definition: gz/math/Vector4.hh:425
const Vector4< T > & operator*=(T _v)
Multiplication assignment operator.
Definition: gz/math/Vector4.hh:538
void Set(T _x=0, T _y=0, T _z=0, T _w=0)
Set the contents of the vector.
Definition: gz/math/Vector4.hh:220
Vector4 operator-() const
Negation operator.
Definition: gz/math/Vector4.hh:356
const friend Vector4 operator*(const T _s, const Vector4 &_v)
Scalar left multiplication operators.
Definition: gz/math/Vector4.hh:529
T SquaredLength() const
Return the square of the length (magnitude) of the vector.
Definition: gz/math/Vector4.hh:113
Vector4(const Vector4< T > &_v)
Copy constructor.
Definition: gz/math/Vector4.hh:70
Vector4< T > & operator=(T _value)
Assignment operator.
Definition: gz/math/Vector4.hh:286
const Vector4< T > & operator*=(const Vector4< T > &_pt)
Multiplication assignment operator.
Definition: gz/math/Vector4.hh:506
Vector4 Abs() const
Get the absolute value of the vector.
Definition: gz/math/Vector4.hh:207
T Distance(T _x, T _y, T _z, T _w) const
Calc distance to the given point.
Definition: gz/math/Vector4.hh:99
Vector4< T > & operator=(const Vector4< T > &_v)
Assignment operator.
Definition: gz/math/Vector4.hh:274
const Vector4< T > & operator-=(const Vector4< T > &_v)
Subtraction assigment operators.
Definition: gz/math/Vector4.hh:376
T isfinite(T... args)
STL class.
Vector4 Normalized() const
Return a normalized vector.
Definition: gz/math/Vector4.hh:171
T min_element(T... args)
T clamp(T _v, T _min, T _max)
Simple clamping function.
Definition: gz/math/Helpers.hh:406
T setf(T... args)
const Vector4< T > operator/(T _v) const
Division assignment operator.
Definition: gz/math/Vector4.hh:453
T Max() const
Get the maximum value in the vector.
Definition: gz/math/Vector4.hh:252
static const Vector4< T > One
math::Vector4(1, 1, 1, 1)
Definition: gz/math/Vector4.hh:44
static const Vector4 NaN
math::Vector4(NaN, NaN, NaN, NaN)
Definition: gz/math/Vector4.hh:47
const Vector4< T > operator*(const Vector4< T > &_pt) const
Multiplication operator.
Definition: gz/math/Vector4.hh:477
Vector4< T > operator+(const Vector4< T > &_v) const
Addition operator.
Definition: gz/math/Vector4.hh:299
T min(T... args)
T fail(T... args)
T Sum() const
Return the sum of the values.
Definition: gz/math/Vector4.hh:266
Vector4(const T &_x, const T &_y, const T &_z, const T &_w)
Constructor with component values.
Definition: gz/math/Vector4.hh:60
T AbsDot(const Vector4< T > &_v) const
Return the absolute dot product of this vector and another vector. This is similar to the Dot functio...
Definition: gz/math/Vector4.hh:197
const Vector4< T > & operator+=(const T _s)
Addition assignment operator.
Definition: gz/math/Vector4.hh:344
Vector4< T > operator+(const T _s) const
Addition operators.
Definition: gz/math/Vector4.hh:323
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)
bool operator<(const Vector4< T > &_pt) const
Less than operator.
Definition: gz/math/Vector4.hh:697
friend std::ostream & operator<<(std::ostream &_out, const Vector4< T > &_pt)
Stream insertion operator.
Definition: gz/math/Vector4.hh:707
Vector4< T > operator-(const T _s) const
Subtraction operators.
Definition: gz/math/Vector4.hh:389
T max(T... args)
void Min(const Vector4< T > &_v)
Set this vector's components to the minimum of itself and the passed in vector.
Definition: gz/math/Vector4.hh:242
const Vector4< T > operator*(const Matrix4< T > &_m) const
Matrix multiplication operator.
Definition: gz/math/Vector4.hh:488
bool operator==(const Vector4< T > &_v) const
Equal to operator.
Definition: gz/math/Vector4.hh:565
Vector4 Rounded() const
Get a rounded version of this vector.
Definition: gz/math/Vector4.hh:133
T & operator[](const std::size_t _index)
Array subscript operator.
Definition: gz/math/Vector4.hh:595
friend Vector4< T > operator+(const T _s, const Vector4< T > &_v)
Addition operators.
Definition: gz/math/Vector4.hh:335
STL class.
void Normalize()
Normalize the vector length.
Definition: gz/math/Vector4.hh:156
const Vector4< T > & operator-=(const T _s)
Subtraction assignment operator.
Definition: gz/math/Vector4.hh:410
friend std::istream & operator>>(std::istream &_in, Vector4< T > &_pt)
Stream extraction operator.
Definition: gz/math/Vector4.hh:718
const Vector4< T > & operator/=(const Vector4< T > &_v)
Division assignment operator.
Definition: gz/math/Vector4.hh:438
bool Equal(const Vector4 &_v, const T &_tol) const
Equality test with tolerance.
Definition: gz/math/Vector4.hh:553
void Correct()
Corrects any nan values.
Definition: gz/math/Vector4.hh:141
friend Vector4< T > operator-(const T _s, const Vector4< T > &_v)
Subtraction operators.
Definition: gz/math/Vector4.hh:401
T Dot(const Vector4< T > &_v) const
Return the dot product of this vector and another vector.
Definition: gz/math/Vector4.hh:181