Add Int4 constructors.

This commit is contained in:
Jean-Baptiste Perrier
2021-04-08 18:52:21 +02:00
parent 563ec32f06
commit 053d55bf81

View File

@@ -89,9 +89,31 @@ public:
{
}
// Init
// @param v Int2 to use X and Y components
// @param z Z component value
// @param w W component value
Int4(const Int2& xy, int32 z, int32 w);
// Init
// @param v Int3 to use X , Y and Z components
// @param w W component value
Int4(const Int3& xyz, int32 w);
// Init
// @param v Vector2 to use X and Y components
// @param z Z component value
// @param w W component value
explicit Int4(const Vector2& xy, int32 z, int32 w);
// Init
// @param v Vector3 to use X , Y and Z components
// @param w W component value
explicit Int4(const Vector3& xyz, int32 w);
// Init
// @param v Vector to use X, Y, Z and W components
explicit Int4(const Vector4& v);
explicit Int4(const Vector4& xyzw);
public: