Skip to content

Plane

Public Struct

Represents the value of a center point and two axes in a plane in three dimensions.

Namespace: Rhino.Geometry

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

[SerializableAttribute]
public struct Plane : IEquatable<Plane>,
IEpsilonComparable<Plane>, ICloneable, IFormattable

The Plane type exposes the following members.

Constructors

Name

Description


Public Method

Copy constructor.


Public Method
Code Example

Constructs a plane from a point and a normal vector.


Public Method
Code Example

Initializes a plane from three non-collinear points.


Public Method

Constructs a plane from a point and two vectors in the plane.


Public Method

Constructs a plane from an equation Ax+By+Cz+D=0.


Properties

Name

Description


Public Property

Gets a value indicating whether or not this is a valid plane. A plane is considered to be valid when all fields contain reasonable information and the equation jibes with point and z-axis.


Public Property

Gets the normal of this plane. This is essentially the ZAxis of the plane.


Public Property

Gets or sets the origin point of this plane.


Public Property

Gets or sets the X coordinate of the origin of this plane.


Public Property

Gets or sets the Y coordinate of the origin of this plane.


Public Property

Gets or sets the Z coordinate of the origin of this plane.


Public Property
Static Member

Gets a plane that contains Unset origin and axis vectors.


Public Property
Static Member

plane coincident with the World XY plane.


Public Property
Static Member

plane coincident with the World YZ plane.


Public Property
Static Member

plane coincident with the World ZX plane.


Public Property

Gets or sets the X axis vector of this plane.


Public Property

Gets or sets the Y axis vector of this plane.


Public Property

Gets or sets the Z axis vector of this plane.


Methods

Name

Description


Public Method

Returns a deep copy of this instance.


Public Method
Code Example

Gets the parameters of the point on the plane closest to a test point.


Public Method

Gets the point on the plane closest to a test point.


Public Method
Static Member

Constructs a plane from a point, and two vectors in the plane.


Public Method
Static Member

Constructs a plane from a point and normal vector.


Public Method
Static Member

Construct a plane from a point, a normal vector, and a vector that projects to the positive YAxis.


Public Method
Static Member

Construct a plane from three non-collinear points.


Public Method
Code Example

Returns the signed distance from testPoint to its projection onto this plane. If the point is below the plane, a negative distance is returned.


Public Method

Returns the signed minimum and maximum distances from bounding box to this plane.


Public Method

Check that all values in other are within epsilon of the values in this


Public Method

Determines if an object is a plane and has the same components as this plane.

(Overrides ValueType.Equals(Object).)


Public Method

Determines if another plane has the same components as this plane.


Public Method

Extends this plane through a bounding box.


Public Method

Extend this plane through a Box.


Public Method
Static Member

Fit a plane through a collection of points.


Public Method
Static Member

Fit a plane through a collection of points.


Public Method

Flip this plane by swapping out the X and Y axes and inverting the Z axis.


Public Method

Gets a non-unique hashing code for this entity.

(Overrides ValueType.GetHashCode..)


Public Method

Gets the plane equation for this plane in the format of Ax+By+Cz+D=0.


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Test if this plane is co-planar with a another plane.


Public Method

Test if this plane is co-planar with a another plane.


Public Method

Evaluate a point on the plane.


Public Method

Evaluate a point on the plane.


Public Method
RemapToPlaneSpace

Convert a point from World space coordinates into Plane space coordinates.


Public Method

Rotate the plane about its origin point.


Public Method

Rotate the plane about a custom anchor point.


Public Method

Rotate the plane about its origin point.


Public Method

Rotate the plane about a custom anchor point.


Public Method

Constructs the string representation of this plane.

(Overrides ValueType.ToString..)


Public Method

Formats the value of the current instance using the specified format.


Public Method

Transform the plane with a Transformation matrix.


Public Method

Translate (move) the plane along a vector.


Public Method

Update Equations


Public Method

Get the value of the plane equation at the point.


Operators

Name

Description


Public Operator
Static Member
Equality

Determines if two planes are equal.


Public Operator
Static Member
Inequality

Determines if two planes are different.