struct
Vec3
- Module
- Math
- Header
#include "Math/Vec3.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
float x, y, | z |
Constructors
| Signature | Name | Description |
|---|---|---|
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
| Returns | Name | Description |
|---|---|---|
Vec3 | operator+ | |
Vec3 | operator- | |
Vec3 | operator* | |
Vec3 | operator/ | |
Vec3 | operator- | |
Vec3& | operator+= | |
Vec3& | operator-= | |
Vec3& | operator*= | |
float | Length | |
float | LengthSquared | |
Vec3 | Normalized | |
void | Normalize | |
float | Dot | |
Vec3 | Cross | |
Vec3 | Up | |
Vec3 | Right | |
Vec3 | Forward |
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) constoperator-
C++
Vec3 operator-(const Vec3& other) constoperator*
C++
Vec3 operator*(float scalar) constoperator/
C++
Vec3 operator/(float scalar) constoperator-
C++
Vec3 operator-() constoperator+=
C++
Vec3& operator+=(const Vec3& other)operator-=
C++
Vec3& operator-=(const Vec3& other)operator*=
C++
Vec3& operator*=(float scalar)Length
C++
float Length() constLengthSquared
C++
float LengthSquared() constNormalized
C++
Vec3 Normalized() constNormalize
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()Right
C++
static Vec3 Right()Forward
C++
static Vec3 Forward()Generated from Math/Vec3.h via math.json · Nov 4, 2026Version 1.0.0