File-By-File
PointSlope

PointSlope

This class is an implementation of the LinearEquation interface, representing a linear equation in point-slope form: y - y1 = m(x - x1) or y = m(x - x1) + y1.

Internally, this class converts the point-slope form into a slope-intercept form (SlopeIntercept) for its calculations. This means that while you construct it with a point and a slope, it doesn't explicitly store "the point" from the point-slope form after construction.

Methods

PointSlope(PointXY point, double slope)

Constructs a new PointSlope instance.

  • point: The PointXY to use for defining the line.
  • slope: The slope of the line.