6#include <QtCore/QtGlobal>
151 void SetX(
double value);
169 void SetY(
double value);
187 void SetZ(
double value);
328 return *
this + vector;
Definition of position or mathematical vector on 2D plane.
double GetY() const
Get Y position of this vector.
double GetX() const
Get X position of this vector.
Represents a position or mathematical vector in 3D space with double precision.
void SetZ(double value)
Sets the Z coordinate of the vector.
CVector3d operator*(double scalar) const
imath::TVector< 3 > BaseClass
CVector3d()
Default constructor creating an uninitialized vector.
bool Serialize(iser::IArchive &archive)
Serialize this vector to specified archive.
CVector3d & operator/=(double scalar)
double GetX() const
Gets the X coordinate of the vector.
void SetX(double value)
Sets the X coordinate of the vector.
double GetY() const
Gets the Y coordinate of the vector.
CVector3d & operator*=(double scalar)
CVector3d GetTranslated(const imath::TVector< 3 > &vector)
Returns a new vector translated by the given offset.
double GetZ() const
Gets the Z coordinate of the vector.
i2d::CVector2d GetPlaneCasted() const
Get XY part of this 3D vector.
CVector3d & operator-=(const imath::TVector< 3 > &vector)
CVector3d operator+(const imath::TVector< 3 > &vector) const
CVector3d operator-() const
CVector3d & operator+=(const imath::TVector< 3 > &vector)
CVector3d operator/(double scalar) const
void SetY(double value)
Sets the Y coordinate of the vector.
CVector3d GetNormalized(double length=1.0) const
Return normalized vector with the same direction and specified length.
CVector3d GetCrossProduct(const imath::TVector< 3 > &vector) const
Calculates the cross product of this vector with another vector.
Implementation of fixed-size mathematical vector with specified type of elements.
const double & operator[](int i) const
TVector< Size, double > & operator+=(const TVector< Size, double > &vector)
TVector< Size, double > & operator/=(double scalar)
TVector< Size, double > & operator-=(const TVector< Size, double > &vector)
TVector< Size, double > & operator*=(double scalar)
TVector< Size, double > GetTranslated(const TVector< Size, double > &vector)
Returns a new vector that is the translation of this vector.
bool GetNormalized(TVector< Size, double > &result, double length=1.0) const
Returns a normalized copy of this vector with specified length.
Represents an input/output persistence archive for object serialization.
static const double I_BIG_EPSILON