Match and link CUnitVector3f

Former-commit-id: 831bc1a9ed
This commit is contained in:
Phillip Stephens 2022-10-04 14:07:00 -07:00
parent 60cc687cd1
commit c8528fc2ee
3 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,7 @@ COMPLETE_OBJECTS = [
"Kyoto/Graphics/CGX",
"Kyoto/Particles/CWarp",
"Kyoto/Math/CPlane",
"Kyoto/Math/CUnitVector3f",
"Kyoto/Math/CVector2f",
"Kyoto/Math/CVector2i",
"Kyoto/Math/CVector3d",

View File

@ -519,7 +519,7 @@ KYOTO_1 :=\
$(BUILD_DIR)/asm/Kyoto/Math/CQuaternion.o\
$(BUILD_DIR)/src/Kyoto/CRandom16.o\
$(BUILD_DIR)/asm/Kyoto/Math/CTransform4f.o\
$(BUILD_DIR)/asm/Kyoto/Math/CUnitVector3f.o\
$(BUILD_DIR)/src/Kyoto/Math/CUnitVector3f.o\
$(BUILD_DIR)/src/Kyoto/Math/CVector2f.o\
$(BUILD_DIR)/src/Kyoto/Math/CVector2i.o\
$(BUILD_DIR)/src/Kyoto/Math/CVector3d.o\

View File

@ -0,0 +1,5 @@
#include "Kyoto/Math/CUnitVector3f.hpp"
CUnitVector3f::CUnitVector3f(const CVector3f& vec)
: CVector3f(vec.IsNonZero() ? vec.AsNormalized() : CVector3f::Zero()) {
}