Fix various core types to be trivially constructible as properly POD-type
This commit is contained in:
@@ -38,9 +38,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
BoundingBox()
|
||||
{
|
||||
}
|
||||
BoundingBox() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BoundingBox"/> struct.
|
||||
|
||||
@@ -34,9 +34,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
BoundingFrustum()
|
||||
{
|
||||
}
|
||||
BoundingFrustum() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BoundingFrustum"/> struct.
|
||||
|
||||
@@ -34,9 +34,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
BoundingSphere()
|
||||
{
|
||||
}
|
||||
BoundingSphere() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BoundingSphere"/> struct.
|
||||
|
||||
@@ -50,9 +50,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Color()
|
||||
{
|
||||
}
|
||||
Color() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Color"/> struct.
|
||||
|
||||
@@ -53,9 +53,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Color32()
|
||||
{
|
||||
}
|
||||
Color32() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new Color32 with given r, g, b, a components.
|
||||
|
||||
@@ -121,9 +121,7 @@ public:
|
||||
/// <summary>
|
||||
/// Default constructor
|
||||
/// </summary>
|
||||
Half2()
|
||||
{
|
||||
}
|
||||
Half2() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Init
|
||||
@@ -185,9 +183,7 @@ public:
|
||||
Half Z;
|
||||
|
||||
public:
|
||||
Half3()
|
||||
{
|
||||
}
|
||||
Half3() = default;
|
||||
|
||||
Half3(Half x, Half y, Half z)
|
||||
: X(x)
|
||||
@@ -242,9 +238,7 @@ public:
|
||||
Half W;
|
||||
|
||||
public:
|
||||
Half4()
|
||||
{
|
||||
}
|
||||
Half4() = default;
|
||||
|
||||
Half4(Half x, Half y, Half z, Half w)
|
||||
: X(x)
|
||||
|
||||
@@ -83,9 +83,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Matrix()
|
||||
{
|
||||
}
|
||||
Matrix() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Matrix"/> struct.
|
||||
|
||||
@@ -63,9 +63,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Matrix3x3()
|
||||
{
|
||||
}
|
||||
Matrix3x3() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Matrix3x3"/> struct.
|
||||
|
||||
@@ -30,9 +30,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Plane()
|
||||
{
|
||||
}
|
||||
Plane() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Init
|
||||
|
||||
@@ -67,9 +67,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Quaternion()
|
||||
{
|
||||
}
|
||||
Quaternion() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Init
|
||||
|
||||
@@ -35,9 +35,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Ray()
|
||||
{
|
||||
}
|
||||
Ray() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Ray"/> struct.
|
||||
|
||||
@@ -31,9 +31,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Rectangle()
|
||||
{
|
||||
}
|
||||
Rectangle() = default;
|
||||
|
||||
// Init
|
||||
// @param x Rectangle location X coordinate
|
||||
|
||||
@@ -40,9 +40,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Transform()
|
||||
{
|
||||
}
|
||||
Transform() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Transform"/> struct.
|
||||
|
||||
@@ -30,9 +30,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Triangle()
|
||||
{
|
||||
}
|
||||
Triangle() = default;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Triangle"/> struct.
|
||||
|
||||
@@ -60,9 +60,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Vector2Base()
|
||||
{
|
||||
}
|
||||
Vector2Base() = default;
|
||||
|
||||
FORCE_INLINE Vector2Base(T xy)
|
||||
: X(xy)
|
||||
|
||||
@@ -89,9 +89,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Vector3Base()
|
||||
{
|
||||
}
|
||||
Vector3Base() = default;
|
||||
|
||||
FORCE_INLINE Vector3Base(T xyz)
|
||||
: X(xyz)
|
||||
|
||||
@@ -76,9 +76,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Vector4Base()
|
||||
{
|
||||
}
|
||||
Vector4Base() = default;
|
||||
|
||||
FORCE_INLINE Vector4Base(T xyzw)
|
||||
: X(xyzw)
|
||||
|
||||
@@ -52,9 +52,7 @@ public:
|
||||
/// <summary>
|
||||
/// Empty constructor.
|
||||
/// </summary>
|
||||
Viewport()
|
||||
{
|
||||
}
|
||||
Viewport() = default;
|
||||
|
||||
// Init
|
||||
// @param x The x coordinate of the upper-left corner of the viewport in pixels
|
||||
|
||||
Reference in New Issue
Block a user