Reformat code in Math libary

This commit is contained in:
Wojtek Figat
2022-05-21 20:04:12 +02:00
parent 785f8915b7
commit 2eb51f9a83
26 changed files with 103 additions and 474 deletions

View File

@@ -13,7 +13,6 @@ struct Rectangle;
API_STRUCT(InBuild) struct FLAXENGINE_API Viewport
{
public:
union
{
struct
@@ -51,7 +50,6 @@ public:
float MaxDepth;
public:
/// <summary>
/// Empty constructor.
/// </summary>
@@ -110,11 +108,9 @@ public:
Viewport(const Rectangle& bounds);
public:
String ToString() const;
public:
// Gets the aspect ratio used by the viewport
// @returns The aspect ratio
float GetAspectRatio() const
@@ -135,7 +131,6 @@ public:
void SetBounds(const Rectangle& bounds);
public:
bool operator==(const Viewport& other) const
{
return X == other.X && Y == other.Y && Width == other.Width && Height == other.Height && MinDepth == other.MinDepth && MaxDepth == other.MaxDepth;
@@ -147,7 +142,6 @@ public:
}
public:
// Projects a 3D vector from object space into screen space
// @param source The vector to project
// @param vp A combined WorldViewProjection matrix