Core: Make all Variant math types structs

Some were declared as structs (public by default) and others as classes
(private by default) but in practice all these math types exposed as
Variants are all 100% public.
This commit is contained in:
Rémi Verschelde
2022-02-04 14:30:17 +01:00
parent 8495be9cec
commit 5ddb518496
9 changed files with 26 additions and 31 deletions

View File

@ -35,13 +35,12 @@
class Variant;
class _NO_DISCARD_ Plane {
public:
struct _NO_DISCARD_ Plane {
Vector3 normal;
real_t d = 0;
void set_normal(const Vector3 &p_normal);
_FORCE_INLINE_ Vector3 get_normal() const { return normal; }; ///Point is coplanar, CMP_EPSILON for precision
_FORCE_INLINE_ Vector3 get_normal() const { return normal; };
void normalize();
Plane normalized() const;