Class: Geometry.Utils.Line

Geometry Line Class

Summary:
  • Represents a straight line drawn between two points on a grid

Test

Usage

Constructs an instance of Line from the supplied point instances

                    
                        new Geometry.Utils.Line(start, finish)
                    
                
Parameters:
Name Type Description
start Geometry.Utils.Point

which point on the grid to start the line from

finish Geometry.Utils.Point

which point on the grid to finish the line at

Properties:
Name Type Description
begins Geometry.Utils.Point

the point on the grid where the line begins

ends Geometry.Utils.Point

the point on the grid where the line ends

Members