1#ifndef NW_MATH_TRANSFORM_H_
2#define NW_MATH_TRANSFORM_H_
4#include <nw/math/math_Config.h>
5#include <nw/math/math_Vector2.h>
6#include <nw/math/math_Vector3.h>
7#include <nw/math/math_Vector4.h>
9namespace nw {
namespace math {
36 translate = t.translate;
60 translate = t.translate;
76 pOut->scale = VEC2(1.f, 1.f);
77 pOut->rotate = VEC2(0.f, 0.f);
78 pOut->translate = VEC2(0.f, 0.f);
85 pOut->scale = VEC3(1.f, 1.f, 1.f);
86 pOut->rotate = VEC3(0.f, 0.f, 0.f);
87 pOut->translate = VEC3(0.f, 0.f, 0.f);
127 return *VEC3Transform(
this, &mtx, &src);
133 return *VEC3Transform(
this, &mtx, &src);
#define NW_MATH_INLINE
Definition math_Config.h:7
Definition math_Constant.cpp:5
VEC3 * VEC3Transform(VEC3 *pOut, const MTX34 &m, const VEC3 &v)
Definition math_Transform.h:110
VEC3 * VEC3TransformNormalArray(VEC3 *pOutArray, const MTX34 &m, const VEC3 *pArray, u32 n)
Definition math_Transform.h:116
VEC4 * VEC4TransformArray(VEC4 *pOutArray, const MTX44 &m, const VEC4 *pArray, u32 n)
Definition math_Transform.h:122
VEC4 * VEC3Transform(VEC4 *pOut, const MTX44 &m, const VEC3 &v)
Definition math_Transform.h:111
VEC4 * VEC3TransformArray(VEC4 *pOutArray, const MTX44 &m, const VEC3 *pArray, u32 count)
Definition math_Transform.h:113
NW_MATH_INLINE VEC4 * VEC3TransformArray(VEC4 *pOut, const MTX44 *pM, const VEC3 *pV, u32 count)
VEC3 * VEC3TransformArray(VEC3 *pOutArray, const MTX34 &m, const VEC3 *pArray, s32 count)
Definition math_Transform.h:112
NW_MATH_INLINE VEC4 * VEC4Transform(VEC4 *pOut, const MTX44 *pM, const VEC4 *pV)
Transform2 * Transform2Identity(Transform2 *pOut)
Definition math_Transform.h:74
Transform3 * Transform3Identity(Transform3 *pOut)
Definition math_Transform.h:83
NW_MATH_INLINE VEC4 * VEC4TransformArray(VEC4 *pOut, const MTX44 *pM, const VEC4 *pV, u32 n)
NW_MATH_INLINE VEC4 * VEC4Transform(VEC4 *pOut, const MTX34 *pM, const VEC4 *pV)
NW_MATH_INLINE VEC3 * VEC3TransformCoordArray(VEC3 *pOut, const MTX44 *pM, const VEC3 *pV, u32 count)
NW_MATH_INLINE VEC3 * VEC3TransformArray(VEC3 *pOut, const MTX34 *pM, const VEC3 *pV, s32 count)
NW_MATH_INLINE VEC3 * VEC3TransformNormal(VEC3 *pOut, const MTX34 *pM, const VEC3 *pV)
VEC3 * VEC3TransformNormal(VEC3 *pOut, const MTX34 &m, const VEC3 &v)
Definition math_Transform.h:115
NW_MATH_INLINE VEC3 * VEC3TransformCoord(VEC3 *pOut, const MTX44 *pM, const VEC3 *pV)
VEC3 * VEC3TransformCoord(VEC3 *pOut, const MTX44 &m, const VEC3 &v)
Definition math_Transform.h:118
VEC3 * VEC3TransformCoordArray(VEC3 *pOutArray, const MTX44 &m, const VEC3 *pArray, u32 count)
Definition math_Transform.h:119
VEC4 * VEC4Transform(VEC4 *pOut, const MTX44 &m, const VEC4 &v)
Definition math_Transform.h:121
NW_MATH_INLINE VEC3 * VEC3TransformNormalArray(VEC3 *pOutArray, const MTX34 *pM, const VEC3 *pArray, u32 n)
NW_MATH_INLINE VEC4 * VEC4TransformArray(VEC4 *pOut, const MTX34 *pM, const VEC4 *pV, u32 n)
Definition math_Constant.cpp:5
Definition math_Matrix34.h:136
Definition math_Matrix44.h:189
Definition math_Vector2.h:49
Definition math_Vector3.h:62
NW_MATH_INLINE self_type & SetTransformNormal(const MTX34 &pM, const VEC3 &src)
Definition math_Transform.h:137
NW_MATH_INLINE self_type & SetTransform(const MTX44 &pM, const VEC3 &src)
Definition math_Transform.h:131
Definition math_Vector4.h:69