Project OpenGeode
class Vector
Description of a vector in the given dimension with double coordinates
cpp
Inherits from Point<dimension>
Inherits from Point<dimension>
Functions
Vector
cpp
public void Vector<>()
public void Vector<>()
Vector
cpp
public void Vector<>(const Point<dimension> & vector)
public void Vector<>(const Point<dimension> & vector)
Vector
cpp
public void Vector<>(std::array<double, dimension> values)
public void Vector<>(std::array<double, dimension> values)
Vector
cpp
public void Vector<>(const Point<dimension> & from, const Point<dimension> & to)
public void Vector<>(const Point<dimension> & from, const Point<dimension> & to)
length2
cpp
public double length2()
public double length2()
length
cpp
public double length()
public double length()
operator*
cpp
public Vector operator*(double multiplier)
public Vector operator*(double multiplier)
operator/
cpp
public Vector operator/(double divider)
public Vector operator/(double divider)
operator+
cpp
public Vector operator+(const Vector<> & other)
public Vector operator+(const Vector<> & other)
operator-
cpp
public Vector operator-(const Vector<> & other)
public Vector operator-(const Vector<> & other)
operator*=
cpp
public void operator*=(double multiplier)
public void operator*=(double multiplier)
operator/=
cpp
public void operator/=(double divider)
public void operator/=(double divider)
operator+=
cpp
public void operator+=(const Vector<> & other)
public void operator+=(const Vector<> & other)
operator-=
cpp
public void operator-=(const Vector<> & other)
public void operator-=(const Vector<> & other)
normalize
cpp
public Vector normalize()
public Vector normalize()
dot
cpp
public double dot(const Vector<> & other)
public double dot(const Vector<> & other)
cross
cpp
public Vector cross(const Vector<> & other)
public Vector cross(const Vector<> & other)