Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plane

Hierarchy

  • Plane

Index

Constructors

constructor

Properties

anchor

anchor: Vector

normal

normal: Vector

Static XY

XY: Plane = new Plane(Vector.Zero(3), Vector.k)

Static XZ

XZ: Plane = new Plane(Vector.Zero(3), Vector.j)

Static YX

YX: Plane = new Plane(Vector.Zero(3), Vector.k)

Static YZ

YZ: Plane = new Plane(Vector.Zero(3), Vector.i)

Static ZX

ZX: Plane = new Plane(Vector.Zero(3), Vector.j)

Static ZY

ZY: Plane = new Plane(Vector.Zero(3), Vector.i)

Methods

contains

  • contains(obj: Geometry, epsilon?: number): boolean
  • Parameters

    • obj: Geometry
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

distanceFrom

  • Parameters

    Returns number

eql

  • eql(plane: unknown, epsilon?: number): boolean
  • Parameters

    • plane: unknown
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

intersectionWith

  • intersectionWith(obj: Line | Segment, epsilon: undefined | number): Vector | null
  • intersectionWith(obj: Plane, epsilon: undefined | number): Line | null
  • Parameters

    • obj: Line | Segment
    • Optional epsilon: undefined | number

    Returns Vector | null

  • Parameters

    • obj: Plane
    • Optional epsilon: undefined | number

    Returns Line | null

intersects

  • intersects(obj: Geometry, epsilon?: number): boolean
  • Parameters

    • obj: Geometry
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

isParallelTo

  • isParallelTo(obj: Geometry, epsilon?: number): boolean
  • Parameters

    • obj: Geometry
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

isPerpendicularTo

  • isPerpendicularTo(obj: Geometry, epsilon?: number): boolean
  • Parameters

    • obj: Geometry
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

pointClosestTo

  • Parameters

    • point: Line | Segment
    • Optional epsilon: undefined | number

    Returns Vector | null

  • Parameters

    Returns Vector

reflectionIn

  • Parameters

    Returns Plane

rotate

  • Parameters

    Returns Plane

toString

  • toString(): string
  • Returns string

translate

Static fromPoints

  • Parameters

    Returns Plane

Generated using TypeDoc