Line

io.github.srs.utils.geometry2d.Line$package.Line
object Line

Companion object for Line, providing utility methods for creating and manipulating lines.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Line.type

Members list

Value members

Concrete methods

def apply(origin: Point2D, direction: Point2D): Line

Creates a new Line instance from the given origin and direction points.

Creates a new Line instance from the given origin and direction points.

Value parameters

direction

the direction vector of the line

origin

the starting point of the line

Attributes

Returns

a new Line instance representing the line in 2D space