Structure representation of a directed straight line in two dimensions from origin to target vectors.
Generate a new segment.
origin : Vector2 . Origin of the segment.
target : Vector2 . Target of the segment.
Extends line type with methods for Vector2 and Segment2.
new(origin, target, xloc, extend, color, style, width)
Draws a line using Segment type to hold its coordinate properties..
origin : Vector2 . Origin vector of the line.
target : Vector2 . Target vector of the line.
xloc : string
Representation of two dimensional vectors or points.
This structure is used to represent positions in two dimensional space or vectors,
for example in spacial coordinates in 2D space.
Create a new Vector2...