Add Vector4 constructors for IntX.
This commit is contained in:
@@ -13,6 +13,9 @@ struct Color;
|
||||
struct Matrix;
|
||||
struct Rectangle;
|
||||
class String;
|
||||
struct Int2;
|
||||
struct Int3;
|
||||
struct Int4;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a four dimensional mathematical vector.
|
||||
@@ -133,6 +136,17 @@ public:
|
||||
// @param w W component value
|
||||
Vector4(const Vector3& xyz, float w);
|
||||
|
||||
// Init
|
||||
// @param xy X and Y values in the vector
|
||||
// @param z Z component value
|
||||
// @param w W component value
|
||||
explicit Vector4(const Int2& xy, float z, float w);
|
||||
|
||||
// Init
|
||||
// @param xyz X, Y and Z values in the vector
|
||||
// @param w W component value
|
||||
explicit Vector4(const Int3& xyz, float w);
|
||||
|
||||
// Init
|
||||
// @param color Int4 value
|
||||
explicit Vector4(const Int4& xyzw);
|
||||
|
||||
Reference in New Issue
Block a user