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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user