2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 05:12:05 +00:00

chore: remove unused bsp util methods

This commit is contained in:
Jan Laupetin
2025-11-06 19:37:51 +01:00
parent c4152ff039
commit bbb07e2b59
2 changed files with 0 additions and 32 deletions

View File

@@ -135,34 +135,4 @@ namespace BSP
out[2].y = in[1].z; out[2].y = in[1].z;
out[2].z = in[2].z; out[2].z = in[2].z;
} }
vec3_t BSPUtil::convertStringToVec3(std::string& str)
{
std::string v1Str = str;
int nextValIndex = 0;
while (v1Str[nextValIndex] != ' ')
nextValIndex++;
nextValIndex++; // skip past space
std::string v2Str = &v1Str[nextValIndex];
nextValIndex = 0;
while (v2Str[nextValIndex] != ' ')
nextValIndex++;
nextValIndex++; // skip past space
std::string v3Str = &v2Str[nextValIndex];
vec3_t result;
result.x = static_cast<float>(atof(v1Str.c_str()));
result.y = static_cast<float>(atof(v2Str.c_str()));
result.z = static_cast<float>(atof(v3Str.c_str()));
return result;
}
std::string BSPUtil::convertVec3ToString(vec3_t& vec)
{
std::string result = std::format("{} {} {}", vec.x, vec.y, vec.z);
return result;
}
} // namespace BSP } // namespace BSP

View File

@@ -17,7 +17,5 @@ namespace BSP
static float distBetweenPoints(T6::vec3_t& p1, T6::vec3_t& p2); static float distBetweenPoints(T6::vec3_t& p1, T6::vec3_t& p2);
static void convertAnglesToAxis(T6::vec3_t* angles, T6::vec3_t* axis); static void convertAnglesToAxis(T6::vec3_t* angles, T6::vec3_t* axis);
static void matrixTranspose3x3(const T6::vec3_t* in, T6::vec3_t* out); static void matrixTranspose3x3(const T6::vec3_t* in, T6::vec3_t* out);
static T6::vec3_t convertStringToVec3(std::string& str);
static std::string convertVec3ToString(T6::vec3_t& vec);
}; };
} // namespace BSP } // namespace BSP