Fix various core types to be trivially constructible as properly POD-type

This commit is contained in:
Wojtek Figat
2023-07-18 18:20:11 +02:00
parent 872509df2a
commit b2b10ce7da
19 changed files with 20 additions and 61 deletions

View File

@@ -38,9 +38,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
BoundingBox()
{
}
BoundingBox() = default;
/// <summary>
/// Initializes a new instance of the <see cref="BoundingBox"/> struct.

View File

@@ -34,9 +34,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
BoundingFrustum()
{
}
BoundingFrustum() = default;
/// <summary>
/// Initializes a new instance of the <see cref="BoundingFrustum"/> struct.

View File

@@ -34,9 +34,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
BoundingSphere()
{
}
BoundingSphere() = default;
/// <summary>
/// Initializes a new instance of the <see cref="BoundingSphere"/> struct.

View File

@@ -50,9 +50,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Color()
{
}
Color() = default;
/// <summary>
/// Initializes a new instance of the <see cref="Color"/> struct.

View File

@@ -53,9 +53,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Color32()
{
}
Color32() = default;
/// <summary>
/// Constructs a new Color32 with given r, g, b, a components.

View File

@@ -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)

View File

@@ -83,9 +83,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Matrix()
{
}
Matrix() = default;
/// <summary>
/// Initializes a new instance of the <see cref="Matrix"/> struct.

View File

@@ -63,9 +63,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Matrix3x3()
{
}
Matrix3x3() = default;
/// <summary>
/// Initializes a new instance of the <see cref="Matrix3x3"/> struct.

View File

@@ -30,9 +30,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Plane()
{
}
Plane() = default;
/// <summary>
/// Init

View File

@@ -67,9 +67,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Quaternion()
{
}
Quaternion() = default;
/// <summary>
/// Init

View File

@@ -35,9 +35,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Ray()
{
}
Ray() = default;
/// <summary>
/// Initializes a new instance of the <see cref="Ray"/> struct.

View File

@@ -31,9 +31,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Rectangle()
{
}
Rectangle() = default;
// Init
// @param x Rectangle location X coordinate

View File

@@ -40,9 +40,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Transform()
{
}
Transform() = default;
/// <summary>
/// Initializes a new instance of the <see cref="Transform"/> struct.

View File

@@ -30,9 +30,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Triangle()
{
}
Triangle() = default;
/// <summary>
/// Initializes a new instance of the <see cref="Triangle"/> struct.

View File

@@ -60,9 +60,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Vector2Base()
{
}
Vector2Base() = default;
FORCE_INLINE Vector2Base(T xy)
: X(xy)

View File

@@ -89,9 +89,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Vector3Base()
{
}
Vector3Base() = default;
FORCE_INLINE Vector3Base(T xyz)
: X(xyz)

View File

@@ -76,9 +76,7 @@ public:
/// <summary>
/// Empty constructor.
/// </summary>
Vector4Base()
{
}
Vector4Base() = default;
FORCE_INLINE Vector4Base(T xyzw)
: X(xyzw)

View File

@@ -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