PointNormalPlane

public struct PointNormalPlane<Vector> : GeometricType, CustomStringConvertible where Vector : VectorFloatingPoint
extension PointNormalPlane: PlaneType
extension PointNormalPlane: PointProjectablePlaneType
extension PointNormalPlane: LineIntersectablePlaneType
extension PointNormalPlane: Equatable where Vector: Equatable
extension PointNormalPlane: Hashable where Vector: Hashable

Represents an infinite plane with a point and a normal.

In 2D, a plane equates to a line, while in 3D and higher dimensions it equates to a flat 2D plane.

  • Convenience for Vector.Scalar

    Declaration

    Swift

    public typealias Scalar = Vector.Scalar
  • Declaration

    Swift

    public var description: String { get }
  • A point on this plane.

    Declaration

    Swift

    public var point: Vector
  • The normal of the plane’s surface.

    Declaration

    Swift

    @UnitVector
    public var normal: Vector { get set }
  • Undocumented

    Declaration

    Swift

    public init(point: Vector, normal: Vector)
  • Creates a PointNormalPlane that wraps the given plane object.

    Declaration

    Swift

    public init<Plane>(_ plane: Plane) where Vector == Plane.Vector, Plane : PlaneType
  • Returns a PointNormal value initialized with this plane’s parameters.

    Declaration

    Swift

    var asPointNormal: PointNormal<Vector> { get }
  • Declaration

    Swift

    public var pointOnPlane: Vector { get }