Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Segment

A shape that is a segment. A shape that is a segment.

Hierarchy

  • Segment

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new segment shape.

    Parameters

    • a: Vector

      The first point of the segment.

    • b: Vector

      The second point of the segment.

    Returns Segment

  • Creates a new segment shape.

    Parameters

    • a: Vector

      The first point of the segment.

    • b: Vector

      The second point of the segment.

    Returns Segment

Properties

Readonly a

The first point of the segment. The first point of the segment.

Readonly b

The second point of the segment. The second point of the segment.

Methods

intoRaw

  • intoRaw(): RawShape
  • intoRaw(): RawShape
  • Returns RawShape

  • Returns RawShape

Generated using TypeDoc