struct

Vec3

Module
Math
Header
#include "Math/Vec3.h"
Namespace
Mowo

Properties

TypeNameDescription
float x, y,z

Constructors

SignatureNameDescription
Vec3() : x(0), y(0), z(0)Vec3
Vec3(float x, float y, float z) : x(x), y(y), z(z)Vec3
explicit Vec3(float scalar) : x(scalar), y(scalar), z(scalar)Vec3

Public functions

ReturnsNameDescription
Vec3operator+
Vec3operator-
Vec3operator*
Vec3operator/
Vec3operator-
Vec3&operator+=
Vec3&operator-=
Vec3&operator*=
floatLength
floatLengthSquared
Vec3Normalized
voidNormalize
floatDot
Vec3Cross
Vec3Up
Vec3Right
Vec3Forward

Function details

Vec3

C++
Vec3() : x(0), y(0), z(0)

Vec3

C++
Vec3(float x, float y, float z) : x(x), y(y), z(z)

Vec3

C++
explicit Vec3(float scalar) : x(scalar), y(scalar), z(scalar)

operator+

C++
Vec3 operator+(const Vec3& other) const

operator-

C++
Vec3 operator-(const Vec3& other) const

operator*

C++
Vec3 operator*(float scalar) const

operator/

C++
Vec3 operator/(float scalar) const

operator-

C++
Vec3 operator-() const

operator+=

C++
Vec3& operator+=(const Vec3& other)

operator-=

C++
Vec3& operator-=(const Vec3& other)

operator*=

C++
Vec3& operator*=(float scalar)

Length

C++
float Length() const

LengthSquared

C++
float LengthSquared() const

Normalized

C++
Vec3 Normalized() const

Normalize

C++
void Normalize()

Dot

C++
static float Dot(const Vec3& a, const Vec3& b)

Cross

C++
static Vec3 Cross(const Vec3& a, const Vec3& b)

Up

C++
static Vec3 Up()
C++
static Vec3 Right()

Forward

C++
static Vec3 Forward()
Generated from Math/Vec3.h via math.json · Nov 4, 2026Version 1.0.0