LVector3i

class LVector3i

Bases: LVecBase3i

This is a three-component vector distance (as opposed to a three-component point, which represents a particular point in space). Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.

Inheritance diagram

Inheritance diagram of LVector3i

LVector3i(void) = default
LVector3i(LVecBase3i const &copy)
LVector3i(int fill_value)
LVector3i(int x, int y, int z)
LVector3i(LVecBase2i const &copy, int z)
LVector3i(LVector3i const&) = default
LVector3i back(CoordinateSystem cs = ::CS_default)

Returns the back vector for the given coordinate system.

LVector3i cross(LVecBase3i const &other) const
LVector3i down(CoordinateSystem cs = ::CS_default)

Returns the down vector for the given coordinate system.

LVector3i forward(CoordinateSystem cs = ::CS_default)

Returns the forward vector for the given coordinate system.

static TypeHandle get_class_type(void)
LVector2i get_xy(void) const

Returns a 2-component vector that shares just the first two components of this vector.

LVector2i get_xz(void) const

Returns a 2-component vector that shares just the first and last components of this vector.

LVector2i get_yz(void) const

Returns a 2-component vector that shares just the last two components of this vector.

LVector3i left(CoordinateSystem cs = ::CS_default)

Returns the left vector for the given coordinate system.

LVector3i rfu(int right, int fwd, int up, CoordinateSystem cs = ::CS_default)

INLINE_LINMATH static FLOATNAME(LVector3) & rfu(FLOATTYPE right,

Returns a vector that is described by its right, forward, and up components, in whatever way the coordinate system represents that vector.

LVector3i right(CoordinateSystem cs = ::CS_default)

Returns the right vector for the given coordinate system.

LVector3i const &unit_x(void)

Returns a unit X vector.

LVector3i const &unit_y(void)

Returns a unit Y vector.

LVector3i const &unit_z(void)

Returns a unit Z vector.

LVector3i up(CoordinateSystem cs = ::CS_default)

Returns the up vector for the given coordinate system.

LVector3i const &zero(void)

Returns a zero-length vector.