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,9 +13,8 @@ struct Viewport;
/// </summary>
API_STRUCT() struct FLAXENGINE_API Ray
{
DECLARE_SCRIPTING_TYPE_MINIMAL(Ray);
DECLARE_SCRIPTING_TYPE_MINIMAL(Ray);
public:
/// <summary>
/// The position in three dimensional space where the ray starts.
/// </summary>
@@ -27,14 +26,12 @@ public:
API_FIELD() Vector3 Direction;
public:
/// <summary>
/// Identity ray (at zero origin pointing forwards).
/// </summary>
static Ray Identity;
public:
/// <summary>
/// Empty constructor.
/// </summary>
@@ -54,11 +51,9 @@ public:
}
public:
String ToString() const;
public:
FORCE_INLINE bool operator==(const Ray& other) const
{
return Position == other.Position && Direction == other.Direction;
@@ -80,7 +75,6 @@ public:
}
public:
/// <summary>
/// Gets a point at distance long ray.
/// </summary>
@@ -260,7 +254,6 @@ public:
}
public:
/// <summary>
/// Calculates a world space ray from 2d screen coordinates.
/// </summary>