vec2

A 2-dimensional vector.


A 2-dimensional vector.

Behaviors

vec2(const vec2&in)

vec2()

vec2(float x, float y)

~vec2()

Methods

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

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

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

vec2 opDiv(float) const Operator obj / x

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

vec2& opDivAssign(float) Operator obj /= x

float opIndex() const Operator obj[x]

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

vec2 opMul(float) const Operator obj * x

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

vec2& opMulAssign(float) Operator obj *= x

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

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

float Length() const

float LengthSquared() const

vec2 Normalized() const

Properties

float x

float y