// @Find : motion.cpp // @Find Second : D3DVECTOR v3Position; // @Change : Eigen::Vector3f v3Position; // @Find : motion.cpp // @Find Second : const D3DVECTOR& CMotion::GetAccumVector() const // @Change : const Eigen::Vector3f& CMotion::GetAccumVector() const // @Find : motion.h // @Add Include: #include #include // @Find : motion.h // @Find Second : const D3DVECTOR& GetAccumVector() const; // @Change : const D3DVECTOR& GetAccumVector() const; // @Find : motion.h // @Find Second : D3DVECTOR m_vec3Accumulation; // @Change : Eigen::Vector3f m_vec3Accumulation; // @Find : text_file_loader.cpp // @Add Include : #include // @Find : text_file_loader.cpp // @Change Functions : BOOL CTextFileLoader::GetTokenVector2(const std::string& c_rstrKey, Eigen::Vector2f* pVector2) { TTokenVector* pTokenVector; if (!GetTokenVector(c_rstrKey, &pTokenVector)) return false; if (pTokenVector->size() != 2) return false; pVector2->x() = atof(pTokenVector->at(0).c_str()); pVector2->y() = atof(pTokenVector->at(1).c_str()); return true; } BOOL CTextFileLoader::GetTokenVector3(const std::string& c_rstrKey, Eigen::Vector3f* pVector3) { TTokenVector* pTokenVector; if (!GetTokenVector(c_rstrKey, &pTokenVector)) return false; if (pTokenVector->size() != 3) return false; pVector3->x() = atof(pTokenVector->at(0).c_str()); pVector3->y() = atof(pTokenVector->at(1).c_str()); pVector3->z() = atof(pTokenVector->at(2).c_str()); return true; } BOOL CTextFileLoader::GetTokenVector4(const std::string& c_rstrKey, Eigen::Vector4f* pVector4) { TTokenVector* pTokenVector; if (!GetTokenVector(c_rstrKey, &pTokenVector)) return false; if (pTokenVector->size() != 4) return false; pVector4->x() = atof(pTokenVector->at(0).c_str()); pVector4->y() = atof(pTokenVector->at(1).c_str()); pVector4->z() = atof(pTokenVector->at(2).c_str()); pVector4->w() = atof(pTokenVector->at(3).c_str()); return true; } BOOL CTextFileLoader::GetTokenPosition(const std::string& c_rstrKey, Eigen::Vector3f* pVector) { return GetTokenVector3(c_rstrKey, pVector); } BOOL CTextFileLoader::GetTokenDirection(const std::string& c_rstrKey, Eigen::Vector3f* pVector) { TTokenVector* pTokenVector; if (!GetTokenVector(c_rstrKey, &pTokenVector)) return false; if (pTokenVector->size() != 3) return false; pVector->x() = atof(pTokenVector->at(0).c_str()); pVector->y() = atof(pTokenVector->at(1).c_str()); pVector->z() = atof(pTokenVector->at(2).c_str()); return true; } // @Find : text_file_loader.h // @Add Include : #include // @Find : text_file_loader.h // @Change Functions : BOOL GetTokenVector2(const std::string& c_rstrKey, Eigen::Vector2f* pVector2); BOOL GetTokenVector3(const std::string& c_rstrKey, Eigen::Vector3f* pVector3); BOOL GetTokenVector4(const std::string& c_rstrKey, Eigen::Vector4f* pVector4); BOOL GetTokenPosition(const std::string& c_rstrKey, Eigen::Vector3f* pVector); BOOL GetTokenDirection(const std::string& c_rstrKey, Eigen::Vector3f* pVector);