Class UnboundLine

A line, that is not bound to a plane, nor is it a part of the dependency graph.

Hierarchy

  • UnboundLine

Implements

Constructors

Properties

a: number

The a coefficient of the line equation in the form of ax + by + c = 0.

arbitraryPoint1: Interfaces.Point

Arbitrary point on the line, that is not equal to Line.arbitraryPoint2.

arbitraryPoint2: Interfaces.Point

Arbitrary point on the line, that is not equal to Line.arbitraryPoint1.

b: number

The b coefficient of the line equation in the form of ax + by + c = 0.

c: number

The c coefficient of the line equation in the form of ax + by + c = 0.

directionalVector: Interfaces.Vector

The directional vector of the line.

normalVector: Interfaces.Vector

The normal vector of the line. If the line intersects the origin, the normal vector is of size 1, otherwise it is of size of distance of the line to the origin.

objectType: "line" = "line"

This object's type, which is "line".

virtual: false = false

Whether this object is virtual.

xAxisAngle: number

The postitve angle of the line with the x-axis.

Accessors

Methods

  • Whether this object is equal to another object.
    If the objects are of a different type, this method should return false.
    If the objects are of the same type, this method should return true if the objects are equal, and false if they are not.

    Parameters

    Returns boolean

  • Creates an unbound line from a given the lines equation.

    Parameters

    • a: number

      The a coefficient of the line equation in the form of ax + by + c = 0.

    • b: number

      The b coefficient of the line equation in the form of ax + by + c = 0.

    • c: number

      The c coefficient of the line equation in the form of ax + by + c = 0.

    Returns Interfaces.Line

    An unbound line with the given equation.

Generated using TypeDoc