Skip to content

Latest commit

 

History

History
83 lines (41 loc) · 867 Bytes

Line.md

File metadata and controls

83 lines (41 loc) · 867 Bytes

Math::Line

This is the Math::Line class.

Represents a line.

Initializer

$line = Line($m: Num, $c: Num)

Creates a line given slope and y-intercept.

  • m: Num - Slope.

  • c: Num - Y-intercept.

Initializer

$line = Line($m: Num, $pt: Point)

Creates a line given slope and a point.

  • m: Num - Slope.

  • pt: Point - Point on the line.

Methods

m

$line.m

Property. Slope.

slope

$line.slope

Computed property. Slope. Same as m.

formula

$line.formula

Computed property. Formula in slope-intercept notation.

Equality operator (==)

$line == ($ehs: Line)

Equality of two lines.

End of the Math::Line class.

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