Click or drag to resize

Plane Structure

Plane represents a normalized plane equation. "Over" or "Above" the plane is considered the side of the plane towards where the normal is pointing.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
[SerializableAttribute]
public struct Plane : IEquatable<Plane>

The Plane type exposes the following members.

Constructors
  NameDescription
Public methodPlane(Vector3, Single)
Constructs a plane from a normal vector and the plane's distance to the origin.
Public methodPlane(Vector3, Vector3, Vector3)
Constructs a plane from the three points, given in clockwise order.
Public methodPlane(Single, Single, Single, Single)
Constructs a plane from four values. `a`, `b` and `c` become the components of the resulting plane's Normal vector. `d` becomes the plane's distance from the origin.
Top
Properties
  NameDescription
Public propertyCenter
The center of the plane, the point where the normal line intersects the plane.
Public propertyD
The distance from the origin to the plane (in the direction of Normal). This value is typically non-negative. In the scalar equation of the plane `ax + by + cz = d`, this is `d`, while the `(a, b, c)` coordinates are represented by the Normal property.
Public propertyNormal
The normal of the plane, which must be normalized. In the scalar equation of the plane `ax + by + cz = d`, this is the vector `(a, b, c)`, where `d` is the D property.
Public propertyStatic memberPlaneXY
A plane that extends in the X and Y axes (normal vector points +Z).
Public propertyStatic memberPlaneXZ
A plane that extends in the X and Z axes (normal vector points +Y).
Public propertyStatic memberPlaneYZ
A plane that extends in the Y and Z axes (normal vector points +X).
Public propertyx
The X component of the plane's normal vector.
Public propertyy
The Y component of the plane's normal vector.
Public propertyz
The Z component of the plane's normal vector.
Top
Methods
  NameDescription
Public methodDistanceTo
Returns the shortest distance from this plane to the position `point`.
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(Plane)
Public methodGetAnyPoint Obsolete.
The center of the plane, the point where the normal line intersects the plane. Deprecated, use the Center property instead.
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodHasPoint
Returns true if point is inside the plane. Comparison uses a custom minimum epsilon threshold.
Public methodIntersect3
Returns the intersection point of the three planes: `b`, `c`, and this plane. If no intersection is found, `null` is returned.
Public methodIntersectRay
Returns the intersection point of a ray consisting of the position `from` and the direction normal `dir` with this plane. If no intersection is found, `null` is returned.
Public methodIntersectSegment
Returns the intersection point of a line segment from position `begin` to position `end` with this plane. If no intersection is found, `null` is returned.
Public methodIsEqualApprox
Returns true if this plane and `other` are approximately equal, by running IsEqualApprox(Single, Single) on each component.
Public methodIsPointOver
Returns true if `point` is located above the plane.
Public methodNormalized
Returns the plane scaled to unit length.
Public methodProject
Returns the orthogonal projection of `point` into the plane.
Public methodToString (Overrides ValueTypeToString.)
Public methodToString(String)
Top
Operators
See Also