Line

io.github.memo33.metarules.pathing.Bezier.Line
case class Line(p1: Point, p2: Point)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(rf: RotFlip): Line
infix def intersect(that: Line): Point
def sameSide(p: Point, q: Point): Boolean

Returns true if points are on the same side of this line. Note: Points must not be ''on'' the line.

Returns true if points are on the same side of this line. Note: Points must not be ''on'' the line.

Attributes

def side(p: Point): Int

Returns 1 if point is on left side of the line, -1 if on the right side, 0 if point is on the line.

Returns 1 if point is on left side of the line, -1 if on the right side, 0 if point is on the line.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product