Add Vector3 constructor for IntX.

This commit is contained in:
Jean-Baptiste Perrier
2021-04-08 18:41:38 +02:00
parent ca0135724c
commit a746e0c995
2 changed files with 30 additions and 3 deletions

View File

@@ -12,6 +12,8 @@ struct Vector2;
struct Vector4;
struct Color;
class String;
struct Int3;
struct Int4;
/// <summary>
/// Represents a three dimensional mathematical vector.
@@ -138,10 +140,19 @@ public:
// @param xy Vector3 value
explicit Vector3(const Vector2& xy);
// Init
// @param xy Int22 with X and Y components values
// @param z Z component value
explicit Vector3(const Int2& xy, float z);
// Init
// @param xyz Int3 value
explicit Vector3(const Int3& xyz);
// Init
// @param xyzw Int4 value
explicit Vector3(const Int4& xyzw);
// Init
// @param xyz Vector4 value
explicit Vector3(const Vector4& xyz);