added vector interconversions
This commit is contained in:
@ -58,6 +58,7 @@ vec3::vec3(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,6 +66,7 @@ vec3::vec3(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,6 +74,7 @@ vec3::vec3(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,6 +82,7 @@ vec3::vec3(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,6 +90,7 @@ vec3::vec3(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,6 +98,7 @@ vec3::vec3(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,6 +106,7 @@ vec3::vec3(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,6 +114,7 @@ vec3::vec3(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,6 +122,8 @@ vec4::vec4(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,6 +131,8 @@ vec4::vec4(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,6 +140,8 @@ vec4::vec4(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,6 +149,8 @@ vec4::vec4(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,6 +158,8 @@ vec4::vec4(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = (double)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,6 +167,8 @@ vec4::vec4(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -156,6 +176,8 @@ vec4::vec4(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,6 +185,8 @@ vec4::vec4(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = (double)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,6 +250,7 @@ vec3f::vec3f(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,6 +258,7 @@ vec3f::vec3f(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,6 +266,7 @@ vec3f::vec3f(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -247,6 +274,7 @@ vec3f::vec3f(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,6 +282,7 @@ vec3f::vec3f(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,6 +290,7 @@ vec3f::vec3f(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,6 +298,7 @@ vec3f::vec3f(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,6 +306,7 @@ vec3f::vec3f(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,6 +314,8 @@ vec4f::vec4f(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,6 +323,8 @@ vec4f::vec4f(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,6 +332,8 @@ vec4f::vec4f(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = (float)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,6 +341,8 @@ vec4f::vec4f(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,6 +350,8 @@ vec4f::vec4f(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -317,6 +359,8 @@ vec4f::vec4f(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,6 +368,8 @@ vec4f::vec4f(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,6 +377,8 @@ vec4f::vec4f(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = (float)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -394,6 +442,7 @@ vec3i::vec3i(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,6 +450,7 @@ vec3i::vec3i(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,6 +458,7 @@ vec3i::vec3i(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -415,6 +466,7 @@ vec3i::vec3i(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,6 +474,7 @@ vec3i::vec3i(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -429,6 +482,7 @@ vec3i::vec3i(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -436,6 +490,7 @@ vec3i::vec3i(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,6 +498,7 @@ vec3i::vec3i(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -450,6 +506,8 @@ vec4i::vec4i(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -457,6 +515,8 @@ vec4i::vec4i(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -464,6 +524,8 @@ vec4i::vec4i(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = (int)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -471,6 +533,8 @@ vec4i::vec4i(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -478,6 +542,8 @@ vec4i::vec4i(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,6 +551,8 @@ vec4i::vec4i(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = (int)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -492,6 +560,8 @@ vec4i::vec4i(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -499,6 +569,8 @@ vec4i::vec4i(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,81 +1,81 @@
|
|||||||
explicit vec2::vec2(const vec3 rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec4 rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec2f rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec3f rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec4f rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec2i rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec3i rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
explicit vec2::vec2(const vec4i rhs);
|
explicit vec2(const vec2 rhs);
|
||||||
|
|
||||||
explicit vec3::vec3(const vec2 rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec4 rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec2f rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec3f rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec4f rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec2i rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec3i rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
explicit vec3::vec3(const vec4i rhs);
|
explicit vec3(const vec3 rhs);
|
||||||
|
|
||||||
explicit vec4::vec4(const vec2 rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec3 rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec2f rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec3f rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec4f rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec2i rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec3i rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
explicit vec4::vec4(const vec4i rhs);
|
explicit vec4(const vec4 rhs);
|
||||||
|
|
||||||
explicit vec2f::vec2f(const vec2 rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec3 rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec4 rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec3f rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec4f rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec2i rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec3i rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
explicit vec2f::vec2f(const vec4i rhs);
|
explicit vec2f(const vec2f rhs);
|
||||||
|
|
||||||
explicit vec3f::vec3f(const vec2 rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec3 rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec4 rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec2f rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec4f rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec2i rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec3i rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
explicit vec3f::vec3f(const vec4i rhs);
|
explicit vec3f(const vec3f rhs);
|
||||||
|
|
||||||
explicit vec4f::vec4f(const vec2 rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec3 rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec4 rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec2f rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec3f rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec2i rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec3i rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
explicit vec4f::vec4f(const vec4i rhs);
|
explicit vec4f(const vec4f rhs);
|
||||||
|
|
||||||
explicit vec2i::vec2i(const vec2 rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec3 rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec4 rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec2f rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec3f rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec4f rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec3i rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
explicit vec2i::vec2i(const vec4i rhs);
|
explicit vec2i(const vec2i rhs);
|
||||||
|
|
||||||
explicit vec3i::vec3i(const vec2 rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec3 rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec4 rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec2f rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec3f rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec4f rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec2i rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
explicit vec3i::vec3i(const vec4i rhs);
|
explicit vec3i(const vec3i rhs);
|
||||||
|
|
||||||
explicit vec4i::vec4i(const vec2 rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec3 rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec4 rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec2f rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec3f rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec4f rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec2i rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
explicit vec4i::vec4i(const vec3i rhs);
|
explicit vec4i(const vec4i rhs);
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -31,13 +31,13 @@ for I in range(0,len(dtype)):
|
|||||||
body += "{\n"
|
body += "{\n"
|
||||||
body += " x = ({})rhs.x;\n".format(convtxt[I])
|
body += " x = ({})rhs.x;\n".format(convtxt[I])
|
||||||
body += " y = ({})rhs.y;\n".format(convtxt[I])
|
body += " y = ({})rhs.y;\n".format(convtxt[I])
|
||||||
if(J>=3):
|
if(dim[J]>=3):
|
||||||
if(L>=3):
|
if(dim[L]>=3):
|
||||||
body += " z = ({})rhs.z;\n".format(convtxt[I])
|
body += " z = ({})rhs.z;\n".format(convtxt[I])
|
||||||
else:
|
else:
|
||||||
body += " z = 0;\n".format(convtxt[I])
|
body += " z = 0;\n".format(convtxt[I])
|
||||||
if(J>=4):
|
if(dim[J]>=4):
|
||||||
if(L>=4):
|
if(dim[L]>=4):
|
||||||
body += " w = ({})rhs.w;\n".format(convtxt[I])
|
body += " w = ({})rhs.w;\n".format(convtxt[I])
|
||||||
else:
|
else:
|
||||||
body += " w = 0;\n".format(convtxt[I])
|
body += " w = 0;\n".format(convtxt[I])
|
||||||
@ -45,7 +45,7 @@ for I in range(0,len(dtype)):
|
|||||||
body += "}\n\n"
|
body += "}\n\n"
|
||||||
|
|
||||||
|
|
||||||
head = "explicit {}::{}(const {} rhs);\n".format(ttxt,ttxt,ftxt)
|
head = "explicit {}(const {} rhs);\n".format(ttxt,ttxt,ftxt)
|
||||||
|
|
||||||
headertxt+=head
|
headertxt+=head
|
||||||
bodytxt+=body
|
bodytxt+=body
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace ams
|
namespace ams
|
||||||
{
|
{
|
||||||
|
|
||||||
vec2::vec2(const vec3 rhs)
|
vec2::vec2(const vec3 rhs)
|
||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
@ -63,6 +62,7 @@ vec3::vec3(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,6 +70,7 @@ vec3::vec3(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,6 +78,7 @@ vec3::vec3(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,6 +86,7 @@ vec3::vec3(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,6 +94,7 @@ vec3::vec3(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,6 +102,7 @@ vec3::vec3(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,6 +110,7 @@ vec3::vec3(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,6 +118,7 @@ vec3::vec3(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,6 +126,8 @@ vec4::vec4(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,6 +135,8 @@ vec4::vec4(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,6 +144,8 @@ vec4::vec4(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,6 +153,8 @@ vec4::vec4(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,6 +162,8 @@ vec4::vec4(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = (double)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,6 +171,8 @@ vec4::vec4(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,6 +180,8 @@ vec4::vec4(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,6 +189,8 @@ vec4::vec4(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (double)rhs.x;
|
x = (double)rhs.x;
|
||||||
y = (double)rhs.y;
|
y = (double)rhs.y;
|
||||||
|
z = (double)rhs.z;
|
||||||
|
w = (double)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,6 +254,7 @@ vec3f::vec3f(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,6 +262,7 @@ vec3f::vec3f(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,6 +270,7 @@ vec3f::vec3f(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,6 +278,7 @@ vec3f::vec3f(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -259,6 +286,7 @@ vec3f::vec3f(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -266,6 +294,7 @@ vec3f::vec3f(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,6 +302,7 @@ vec3f::vec3f(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,6 +310,7 @@ vec3f::vec3f(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,6 +318,8 @@ vec4f::vec4f(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,6 +327,8 @@ vec4f::vec4f(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,6 +336,8 @@ vec4f::vec4f(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = (float)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -308,6 +345,8 @@ vec4f::vec4f(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -315,6 +354,8 @@ vec4f::vec4f(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,6 +363,8 @@ vec4f::vec4f(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,6 +372,8 @@ vec4f::vec4f(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,6 +381,8 @@ vec4f::vec4f(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (float)rhs.x;
|
x = (float)rhs.x;
|
||||||
y = (float)rhs.y;
|
y = (float)rhs.y;
|
||||||
|
z = (float)rhs.z;
|
||||||
|
w = (float)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,6 +446,7 @@ vec3i::vec3i(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,6 +454,7 @@ vec3i::vec3i(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -413,6 +462,7 @@ vec3i::vec3i(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -420,6 +470,7 @@ vec3i::vec3i(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -427,6 +478,7 @@ vec3i::vec3i(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -434,6 +486,7 @@ vec3i::vec3i(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -441,6 +494,7 @@ vec3i::vec3i(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -448,6 +502,7 @@ vec3i::vec3i(const vec4i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -455,6 +510,8 @@ vec4i::vec4i(const vec2 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -462,6 +519,8 @@ vec4i::vec4i(const vec3 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -469,6 +528,8 @@ vec4i::vec4i(const vec4 rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = (int)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -476,6 +537,8 @@ vec4i::vec4i(const vec2f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -483,6 +546,8 @@ vec4i::vec4i(const vec3f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -490,6 +555,8 @@ vec4i::vec4i(const vec4f rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = (int)rhs.w;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,6 +564,8 @@ vec4i::vec4i(const vec2i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = 0;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -504,9 +573,9 @@ vec4i::vec4i(const vec3i rhs)
|
|||||||
{
|
{
|
||||||
x = (int)rhs.x;
|
x = (int)rhs.x;
|
||||||
y = (int)rhs.y;
|
y = (int)rhs.y;
|
||||||
|
z = (int)rhs.z;
|
||||||
|
w = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user