added vector interconversions

This commit is contained in:
2026-03-11 14:23:36 -04:00
parent d26c7ee348
commit 4fe50d12d0
24 changed files with 1732 additions and 5 deletions

View File

@ -0,0 +1,504 @@
vec2::vec2(const vec3 rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec4 rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec2f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec3f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec4f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec2i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec3i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2::vec2(const vec4i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec2 rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec4 rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec2f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec3f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec4f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec2i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec3i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec3::vec3(const vec4i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec2 rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec3 rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec2f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec3f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec4f rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec2i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec3i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec4::vec4(const vec4i rhs)
{
x = (double)rhs.x;
y = (double)rhs.y;
return;
}
vec2f::vec2f(const vec2 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec3 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec4 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec3f rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec4f rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec2i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec3i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2f::vec2f(const vec4i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec2 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec3 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec4 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec2f rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec4f rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec2i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec3i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec3f::vec3f(const vec4i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec2 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec3 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec4 rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec2f rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec3f rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec2i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec3i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec4f::vec4f(const vec4i rhs)
{
x = (float)rhs.x;
y = (float)rhs.y;
return;
}
vec2i::vec2i(const vec2 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec3 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec4 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec2f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec3f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec4f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec3i rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec2i::vec2i(const vec4i rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec2 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec3 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec4 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec2f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec3f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec4f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec2i rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec3i::vec3i(const vec4i rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec2 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec3 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec4 rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec2f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec3f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec4f rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec2i rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}
vec4i::vec4i(const vec3i rhs)
{
x = (int)rhs.x;
y = (int)rhs.y;
return;
}