Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Segment

Hierarchy

  • Segment

Index

Constructors

constructor

Properties

end

end: Vector

line

line: Line

start

start: Vector

Methods

bisectingPlane

  • bisectingPlane(): Plane
  • Returns Plane

contains

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

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

    Returns boolean

distanceFrom

  • Parameters

    Returns number

eql

  • eql(segment: unknown): boolean
  • Parameters

    • segment: unknown

    Returns boolean

intersectionWith

  • Parameters

    Returns Vector | null

    The point, or null if there is no intersection

intersects

  • Parameters

    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

length

  • length(): number
  • Returns number

midpoint

  • Returns Vector

pointClosestTo

  • Parameters

    Returns Vector | null

    The vector, or null if the object is parallel to the segment.

toString

  • toString(): string
  • Returns string

toVector

  • Returns Vector

translate

Generated using TypeDoc