Point2D

io.github.srs.model.Point2D$package.Point2D
object Point2D

Companion object for Point2D, providing convenient factory methods.

Attributes

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

Members list

Value members

Concrete methods

def apply(x: Double, y: Double): Point2D

Creates a new Point2D instance given x and y coordinates.

Creates a new Point2D instance given x and y coordinates.

Value parameters

x

the x-coordinate of the point.

y

the y-coordinate of the point.

Attributes

Returns

a new Point2D representing the given coordinates.