vec3

A 3-dimensional vector.


A 3-dimensional vector.

Behaviors

vec3(const vec3&in)

vec3()

vec3(float x, float y, float z)

~vec3()

Methods

vec3 opAdd(const vec3&in) const Operator obj + x

vec3& opAddAssign(const vec3&in) Operator obj += x

vec3 opDiv(const vec3&in) const Operator obj / x

vec3 opDiv(float) const Operator obj / x

vec3& opDivAssign(const vec3&in) Operator obj /= x

vec3& opDivAssign(float) Operator obj /= x

float opIndex() const Operator obj[x]

vec3 opMul(const vec3&in) const Operator obj * x

vec3 opMul(float) const Operator obj * x

vec3& opMulAssign(const vec3&in) Operator obj *= x

vec3& opMulAssign(float) Operator obj *= x

vec3 opSub(const vec3&in) const Operator obj - x

vec3& opSubAssign(const vec3&in) Operator obj -= x

float Length() const

float LengthSquared() const

vec3 Normalized() const

Properties

float x

float y

float z