gwnavruntime/math/transform.h Source File
Go to the documentation of this file.
26 void SetIdentity() { R.SetIdentity(); T =
Vec3f::Zero(); }
29 Vec3f Translate(
const Vec3f& to_translate)
const {
return to_translate + T; }
30 Vec3f DoTransform(
const Vec3f& to_transform)
const {
return R.
Transform(to_transform) + T; }
39 bool operator==(
const Transform& other) {
return R == other.R && T == other.T; }
40 bool operator!=(
const Transform& other) {
return !operator==(other); }
49 SwapEndianness(e,
self.R);
50 SwapEndianness(e,
self.T);
53 template <
class OSTREAM>
54 inline OSTREAM& operator<<(OSTREAM& os,
const Transform& t)
Vec3f Transform(const Vec3f &to_transform) const
return transformed Vec3f
Definition: matrix3x3f.h:137
static Vec3f Zero()
Returns {0.0f, 0.0f, 0.0f}.
Definition: vec3f.h:99
Matrix3x3f is defined as 3 Transformed Unit Vectors:
Definition: matrix3x3f.h:24
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
3d vector using 32bits floating points.
Definition: vec3f.h:16