49template <
class DT>
class Tvec3;
90 inline void assign(
const DT px,
const DT py)
FloatingPointVector(DT value=DT(0))
Declaration of float vector type traits.
Tvec2(const DT px, const DT py)
Constructor building the vector px and py.
Tvec2(const Superclass &v)
Tvec3< DT > affinePoint() const
void assign(const MLfloat px, const MLfloat py)
Tvec3< DT > affineVec() const
Tvec2(const Tvec3< DT > &v, const int axis)
Tvec2(const Tvec3< DT > &v, const bool normalize)
DT ComponentType
A typedef to 'export' the type of components.
FloatingPointVector< DT, 2, Vector2DataContainer< DT > > Superclass
A typedef as a shorthand for the base class.
Forward declarations to resolve header file dependencies.
Specialized base class for the FloatingPointVectorDataContainerBase.
DT x
X-component of the vector, same as _buffer[0].
DT _buffer[2]
Data members as vector to provide array access, same as x and y members.
DT y
Y-component of the vector, same as _buffer[1].
#define ML_CHECK_FLOAT_THROW(x)
Tvec2< MLdouble > Vector2d
A vector with two components of type double.
Tvec2< MLfloat > Vector2f
A vector with two components of type float.
Tvec2< MLdouble > Vector2
A vector with two components of type double.
Tvec2< MLldouble > Vector2ld
A vector with two components of type long double.