317#include <SFML/System/Vector3.inl>
#define SFML_SYSTEM_API
Definition Export.hpp:42
Utility template class for manipulating 3-dimensional vectors.
Definition Vector3.hpp:39
constexpr Vector3< T > operator/(const Vector3< T > &left, T right)
Overload of binary operator /.
SFML_SYSTEM_API Vector3 normalized() const
Vector with same direction but length 1 (floating-point).
constexpr bool operator==(const Vector3< T > &left, const Vector3< T > &right)
Overload of binary operator ==.
constexpr Vector3 cross(const Vector3 &rhs) const
Cross product of two 3D vectors.
constexpr Vector3< T > & operator/=(Vector3< T > &left, T right)
Overload of binary operator /=.
constexpr Vector3 componentWiseDiv(const Vector3 &rhs) const
Component-wise division of *this and rhs.
float z
Definition Vector3.hpp:137
constexpr T dot(const Vector3 &rhs) const
Dot product of two 3D vectors.
float x
Definition Vector3.hpp:135
constexpr Vector3< T > & operator-=(Vector3< T > &left, const Vector3< T > &right)
Overload of binary operator -=.
constexpr Vector3< T > operator*(T left, const Vector3< T > &right)
Overload of binary operator *.
float y
Definition Vector3.hpp:136
constexpr Vector3< T > operator-(const Vector3< T > &left, const Vector3< T > &right)
Overload of binary operator -.
constexpr Vector3< T > & operator+=(Vector3< T > &left, const Vector3< T > &right)
Overload of binary operator +=.
constexpr Vector3< T > & operator*=(Vector3< T > &left, T right)
Overload of binary operator *=.
constexpr Vector3(T x, T y, T z)
Construct the vector from its coordinates.
constexpr Vector3(const Vector3< U > &vector)
Construct the vector from another type of vector.
constexpr Vector3< T > operator*(const Vector3< T > &left, T right)
Overload of binary operator *.
constexpr Vector3 componentWiseMul(const Vector3 &rhs) const
Component-wise multiplication of *this and rhs.
constexpr bool operator!=(const Vector3< T > &left, const Vector3< T > &right)
Overload of binary operator !=.
constexpr Vector3< T > operator+(const Vector3< T > &left, const Vector3< T > &right)
Overload of binary operator +.
constexpr Vector3()=default
Default constructor.
SFML_SYSTEM_API T length() const
Length of the vector (floating-point).
constexpr T lengthSquared() const
Square of vector's length.
constexpr Vector3< T > operator-(const Vector3< T > &left)
Overload of unary operator -.
Definition BlendMode.hpp:34
Vector3< float > Vector3f
Definition Vector3.hpp:313
Vector3< int > Vector3i
Definition Vector3.hpp:312