Math::Line

This is the Math::Line class.

Represents a line segment.

Initializer

$line = Line($pt1: Point, $pt2: Point)

Creates a line segment given two endpoints.

Arguments

  • pt1: Point - An endpoint.

  • pt2: Point - Another endpoint.

Methods

length

$line.length

Computed property. Length of the line segment.

endpoints

$line.endpoints

Computed property. A list of endpoints.

midpoint

$line.midpoint

Computed property. Midpoint of the line segment.

End of the Math::Line class.

This file was generated automatically by the Ferret compiler from Line.frt.