EasyGeometry::D2::Line

An infinite line in 2-dimensional Euclidean space. Line inherit from Linear Entity.

#contains?(entity)

Is other GeometryEntity contained in this Line?

Returns:

  • true if entity is on this Line.

  • false otherwise.

#distance(point)

Finds the shortest distance between a line and a point.

#==(other)

Returns True if self and otherare the same mathematical entities.

#equation

The equation of the line: ax + by + c.

Last updated

Was this helpful?