Class Geometry
- Namespace
- Gamelogic.Extensions
- Assembly
- Assembly-CSharp.dll
Provides utility methods for doing geometry.
[Version(2, 0, 0)]
public static class Geometry
- Inheritance
-
Geometry
- Inherited Members
Methods
IsInHalfPlane(Vector2, Vector2, Vector2)
Determines whether a point is in the half plane described by a point and direction.
public static bool IsInHalfPlane(Vector2 point, Vector2 halfPlanePoint, Vector2 halfPlaneDirection)
Parameters
point
Vector2The point to check.
halfPlanePoint
Vector2The half plane point.
halfPlaneDirection
Vector2The half plane direction.
Returns
- bool
true
if the point is in the half plane; otherwise,false
.
IsInHalfPlane(Vector3, Vector3, Vector3)
Determines whether a point is in the half (3D, hyper) plane described by a point and direction.
public static bool IsInHalfPlane(Vector3 point, Vector3 halfPlanePoint, Vector3 halfPlaneDirection)
Parameters
point
Vector3The point to check.
halfPlanePoint
Vector3The half plane point.
halfPlaneDirection
Vector3The half plane direction.
Returns
- bool
true
if the point is in the half plane; otherwise,false
.