struct
FTransform
- Module
- Math
- Header
#include "Math/FTransform.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
Vec3 | Translation | Default Vec3(0, 0, 0). |
Quat | Rotation | identity Default Quat(0, 0, 0, 1). |
Vec3 | Scale | Default Vec3(1, 1, 1). |
Constructors
| Signature | Name | Description |
|---|---|---|
constexpr FTransform() = default | FTransform | |
constexpr FTransform(const Vec3& t, const Quat& r, const Vec3& s) : Translation(… | FTransform |
Public functions
| Returns | Name | Description |
|---|---|---|
FTransform | Identity | |
Mat4 | ToMatrix | Compose into a 4×4 — for GPU upload. |
FTransform | operator* | Compose two transforms — apply other first, then this. |
Vec3 | TransformPosition | Transform a point — equivalent to ToMatrix() * Vec4(p, 1).xyz. |
Vec3 | TransformDirection | Transform a direction (ignores translation). |
Function details
FTransform
C++
constexpr FTransform() = defaultFTransform
C++
constexpr FTransform(const Vec3& t, const Quat& r, const Vec3& s) : Translation(t), Rotation(r), Scale(s)Identity
C++
static FTransform Identity()ToMatrix
C++
Mat4 ToMatrix() constCompose into a 4×4 — for GPU upload. Order: Scale → Rotate → Translate. The rotation matrix is built from the quaternion inline.
operator*
C++
FTransform operator*(const FTransform& other) constCompose two transforms — apply other first, then this. Equivalent to this->ToMatrix() * other.ToMatrix().
TransformPosition
C++
Vec3 TransformPosition(const Vec3& p) constTransform a point — equivalent to ToMatrix() * Vec4(p, 1).xyz.
TransformDirection
C++
Vec3 TransformDirection(const Vec3& d) constTransform a direction (ignores translation).
Generated from Math/FTransform.h via math.json · Nov 4, 2026Version 1.0.0