struct

Vec3d

A double-precision world position for the places a position leaves the float simulation: saves, the editor's absolute readout, streaming. The float pair (local, origin offset) is exact, so FromLocal adds in doubles and ToLocal subtracts in doubles before narrowing once.

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

Properties

TypeNameDescription
doublexDefault 0.0.
doubleyDefault 0.0.
doublezDefault 0.0.

Constructors

SignatureNameDescription
Vec3d() = defaultVec3d
Vec3d(double px, double py, double pz) : x(px), y(py), z(pz)Vec3d

Public functions

ReturnsNameDescription
Vec3dFromLocal
Vec3ToLocal
Vec3doperator+
Vec3doperator-
booloperator==

Function details

Vec3d

C++
Vec3d() = default

Vec3d

C++
Vec3d(double px, double py, double pz) : x(px), y(py), z(pz)

FromLocal

C++
static Vec3d FromLocal(const Vec3& local, const double* origin)

ToLocal

C++
Vec3 ToLocal(const double* origin) const

operator+

C++
Vec3d operator+(const Vec3d& o) const

operator-

C++
Vec3d operator-(const Vec3d& o) const

operator==

C++
bool operator==(const Vec3d& o) const
Generated from Math/Vec3d.h via math.json · Dec 4, 2026Version 1.1.0