summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-21 21:16:41 +0200
committerGitHub <noreply@github.com>2018-08-21 21:16:41 +0200
commita319d72071eaf0d2e67d88f205c53e1eca331162 (patch)
tree58f485292882c98a6e5e8034cce1b2c81ea82af9 /modules
parentd3de933377d81126c20ca4599da3d3ed2e9c1884 (diff)
parenta986686ac4b4896fc13feb5a85e64e511e6a4c83 (diff)
Merge pull request #21253 from aaronfranke/plane-constants
Rename Plane constants, add to Mono
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/glue/cs_files/Plane.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/mono/glue/cs_files/Plane.cs b/modules/mono/glue/cs_files/Plane.cs
index 1020f06bf5..9611dce11e 100644
--- a/modules/mono/glue/cs_files/Plane.cs
+++ b/modules/mono/glue/cs_files/Plane.cs
@@ -145,6 +145,15 @@ namespace Godot
return point - _normal * DistanceTo(point);
}
+ // Constants
+ private static readonly Plane _planeYZ = new Plane(1, 0, 0, 0);
+ private static readonly Plane _planeXZ = new Plane(0, 1, 0, 0);
+ private static readonly Plane _planeXY = new Plane(0, 0, 1, 0);
+
+ public static Plane PlaneYZ { get { return _planeYZ; } }
+ public static Plane PlaneXZ { get { return _planeXZ; } }
+ public static Plane PlaneXY { get { return _planeXY; } }
+
// Constructors
public Plane(real_t a, real_t b, real_t c, real_t d)
{