Add Int2 constructors.

This commit is contained in:
Jean-Baptiste Perrier
2021-04-08 18:52:42 +02:00
parent 21f1930c2d
commit 9cf6120b39

View File

@@ -74,9 +74,25 @@ public:
}
// Init
// @param v Vector to use X and Y components
explicit Int2(const Vector2& v);
// @param xyz Int3 to use X and Y components
Int2(const Int3& xyz);
// Init
// @param xyzw Int4 to use X and Y components
Int2(const Int4& xyzw);
// Init
// @param xy Vector2 to use X and Y components
explicit Int2(const Vector2& xy);
// Init
// @param xyz Vector3 to use X and Y components
explicit Int2(const Vector3& xyz);
// Init
// @param xyzw Vector4 to use X and Y components
explicit Int2(const Vector4& xyzw);
public:
String ToString() const;