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
| Type | Name | Description |
|---|---|---|
double | x | Default 0.0. |
double | y | Default 0.0. |
double | z | Default 0.0. |
Constructors
| Signature | Name | Description |
|---|---|---|
Vec3d() = default | Vec3d | |
Vec3d(double px, double py, double pz) : x(px), y(py), z(pz) | Vec3d |
Public functions
| Returns | Name | Description |
|---|---|---|
Vec3d | FromLocal | |
Vec3 | ToLocal | |
Vec3d | operator+ | |
Vec3d | operator- | |
bool | operator== |
Function details
Vec3d
C++
Vec3d() = defaultVec3d
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) constoperator+
C++
Vec3d operator+(const Vec3d& o) constoperator-
C++
Vec3d operator-(const Vec3d& o) constoperator==
C++
bool operator==(const Vec3d& o) constGenerated from Math/Vec3d.h via math.json · Dec 4, 2026Version 1.1.0