CADability dotNET

The Plane type exposes the following members.

Constructors

  NameDescription
Public methodPlane(SerializationInfo, StreamingContext)
Constructor required by deserialization
Public methodPlane(GeoPoint, GeoVector)
Creates a new plane. The parameter data is under-determined for the plane, so the x-axis and y-axis will be determined arbitrarily
Public methodPlane(Plane, Double)
Public methodPlane(Plane..::..StandardPlane, Double)
Creates a new plane parallel to a [!:Standardplane] with a given offset
Public methodPlane(GeoPoint, GeoPoint, GeoPoint)
Creates a new plane with the given parameters. Throws a PlaneException, if the three points are colinear
Public methodPlane(GeoPoint, GeoVector, GeoVector)
Enum type to specify the position of an object relative to a plane

Methods

  NameDescription
Public methodAlign(GeoPoint2D)
Public methodAlign(Plane, Boolean)
Aligns the DirectionX and DirectionY vectors of this plane so that the projection of DirectionX of AlignTo and DircetionX of this plane are parallel. If the two planes are parallel, the DirectionX and DirectionY of both planes will also be parallel. The plane will not be changed. The Location of this plane will be changed to a point closest to the location of AlignTo, if relocate is true, otherwise the location remains unchanged.
Public methodAlign(Plane, Boolean, Boolean)
Aligns the DirectionX and DirectionY vectors of this plane so that the projection of DirectionX of AlignTo and DircetionX of this plane are parallel. If the two planes are parallel, the DirectionX and DirectionY of both planes will also be parallel. The plane will not be changed. The Location of this plane will be changed to a point closest to the location of AlignTo, if relocate is true, otherwise the location remains unchanged. If flip is true there is an additional check whether the angle between the two normal vectors is less than 90°. If not, the y-axis is reversed and the angle between the two normal vectors will be less than 90°
Public methodDistance
Returns the signed distance of the point from the plane. The direction of the normal vector of the plane determins the sign of the result.
Public methodElem
Public methodStatic memberFromPoints
Finds a plane that best fits through the given points. Calculates also the maximum distance of the points from that plane. If MaxDistance is 0.0 or small, the points are coplanar.
Public methodGetProjection
Returns a projection that projects (perpendiccular) from global space to this plane
Public methodInterfere
Public methodIntersect(GeoPoint, GeoVector)
Returns the intersection plane of the line given by the parameters with this plane.
Public methodIntersect(Plane, GeoPoint%, GeoVector%)
Public methodStatic memberIntersect3Planes
Public methodIsValid
An uninitialized plane is invalid, because its normal vector is (0,0,0).
Public methodModify
Public methodOffset
Returns a plane parallel to this plane with the given offset
Public methodProject(GeoPoint)
Projects the given point (perpendicular) onto this plane and returns the two-dimensional point as expressed in the coordinate system of this plane.
Public methodProject(GeoVector)
Projects the given vector (perpendicular) onto this plane and returns the two-dimensional vector as expressed in the coordinate system of this plane.
Public methodReverse
Public methodToGlobal(GeoPoint)
Inverse to the appropriate ToLocal(GeoPoint) method. The given point is assumed in the coordinate ststem of this plane. Returns the point in the global coordinate system.
Public methodToGlobal(GeoPoint2D)
Inverse to the appropriate Project(GeoPoint) method. Returns the point in the global coordinate system
Public methodToGlobal(GeoVector)
Returns the 3D GeoVector corresponding to the given GeoVector in the coordinate system of the plane.
Public methodToGlobal(GeoVector2D)
Inverse to the appropriate Project(GeoVector) method. Returns the vector in the global coordinate system
Public methodToLocal(GeoPoint)
Returns the point as expressed in the coordinate system of this plane
Public methodToLocal(GeoVector)
Returns the vector as expressed in the coordinate system of this plane
Public methodToLocal(Plane)
Returns the plane given in parameter p expressed in the coordinate system of this plane

Fields

  NameDescription
Public fieldStatic memberXYPlane
Returns the X/Y plane.
Public fieldStatic memberXZPlane
Returns the X/Z plane.
Public fieldStatic memberYZPlane
Returns the Y/Z plane.

Properties

  NameDescription
Public propertyCoordSys
Returns the coordinate system corresponding to this plane. The z-axis of the coordinate system is the normal vector of this plane (always right handed)
Public propertyDirectionX
Gets or sets the direction of the x-axis of this plane. Setting the x-axis results in a reculculation of the y-axis to make the axis perpendicular.
Public propertyDirectionY
Gets or sets the direction of the y-axis of this plane. Setting the y-axis results in a reculculation of the x-axis to make the axis perpendicular.
Public propertyLocation
Gets or sets the location of this plane
Public propertyNormal
Gets or sets the normal vector of this plane. Setting the normal vector results in a recalculation of the x-axis and y-axis of this plane

Explicit Interface Implementations

See Also