Segment

A segment class that is defined by two

Constructors

this
this(Vector!(T, dimensions) initial, Vector!(T, dimensions) terminal)

Constructor for a segment; Takes in the initial point and the terminal point

Members

Functions

contains
bool contains(Vector!(T, dimensions) point)

Returns whether this segment contains the other point Checks that a segment from origin to point has magnitude between initial and terminal's magnitude Also checks that when point magnitude is 1 and direction magnitude is 1, they have the same or they have negated components

Properties

direction
Vector!(T, dimensions) direction [@property getter]

Returns the direction of the segment from initial to terminal

Variables

initial
Vector!(T, dimensions) initial;

The initial point (the vector points to the initial point)

terminal
Vector!(T, dimensions) terminal;

The terminal point (the vector points to the terminal point)

Meta