Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Line

Hierarchy

  • Line

Index

Constructors

constructor

Properties

anchor

anchor: Vector

direction

direction: Vector

Static X

X: Line = new Line(Vector.Zero(3), Vector.i)

Static Y

Y: Line = new Line(Vector.Zero(3), Vector.j)

Static Z

Z: Line = new Line(Vector.Zero(3), Vector.k)

Accessors

Static Segment

Segment:

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(line: unknown, epsilon?: number): boolean
  • Parameters

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

    Returns boolean

getAngleFromObject

intersectionWith

intersects

  • Parameters

    • obj: Plane | Line | Segment
    • 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

liesIn

  • liesIn(plane: Plane): boolean
  • Parameters

    Returns boolean

pointClosestTo

  • Parameters

    Returns Vector

    a vector, or null if this is parallel to the object

  • Parameters

    Returns Vector | null

positionOf

  • Parameters

    Returns number | null

    A number or null if the point is not on the line

reflectionIn

reverse

  • Returns Line

rotate

toString

  • toString(): string
  • Returns string

translate

Generated using TypeDoc