GCubeSDK
©2026 FenixFox®Studios

Functions

Vector2 operator*(f32 s, const Vector2& v)

Scalar multiplication from left side

s Scalar value
v Vector to multiply

Vector3 operator+(const Vector3& a, const Vector3& b)

Adds two vectors together

a First vector
b Second vector

Vector3 operator-(const Vector3& a, const Vector3& b)

Subtracts second vector from first

a First vector
b Second vector

Vector3 operator*(const Vector3& v, f32 scalar)

Multiplies vector by scalar

v Vector to multiply
scalar Scalar value

Vector3 operator*(f32 scalar, const Vector3& v)

Multiplies scalar by vector

scalar Scalar value
v Vector to multiply

Vector3 operator/(const Vector3& v, f32 scalar)

Divides vector by scalar

v Vector to divide
scalar Scalar value

Vector3 operator+(const Vector3& a, const guVector& b)

Adds Vector3 and guVector together

a Vector3
b guVector

Vector3 operator-(const Vector3& a, const guVector& b)

Subtracts guVector from Vector3

a Vector3
b guVector

Vector3 operator+(const guVector& a, const Vector3& b)

Adds guVector and Vector3 together

a guVector
b Vector3

Vector3 operator-(const guVector& a, const Vector3& b)

Subtracts Vector3 from guVector

a guVector
b Vector3

Vector4 operator+(const Vector4& a, const Vector4& b)

Adds two vectors together

a First vector
b Second vector

Vector4 operator-(const Vector4& a, const Vector4& b)

Subtracts second vector from first

a First vector
b Second vector

Vector4 operator*(const Vector4& v, f32 scalar)

Multiplies vector by scalar

v Vector to multiply
scalar Scalar value

Vector4 operator*(f32 scalar, const Vector4& v)

Multiplies scalar by vector

scalar Scalar value
v Vector to multiply

Vector4 operator/(const Vector4& v, f32 scalar)

Divides vector by scalar

v Vector to divide
scalar Scalar value