LineSegment

final case class LineSegment(start: Vertex, end: Vertex)
Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def contains(vertex: Vertex, tolerance: Double): Boolean
def contains(vertex: Vertex): Boolean
def contains(vector: Vector2): Boolean
def moveBy(amount: Vertex): LineSegment
def moveBy(amount: Vector2): LineSegment
def moveEndTo(newPosition: Vertex): LineSegment
def moveEndTo(newPosition: Vector2): LineSegment
def moveStartTo(newPosition: Vertex): LineSegment
def moveStartTo(newPosition: Vector2): LineSegment
def moveTo(newPosition: Vertex): LineSegment
def moveTo(newPosition: Vector2): LineSegment
def sdf(vertex: Vertex): Double
def top: Double
def ~==(other: LineSegment): Boolean

Deprecated methods

@deprecated("use `intersectsWith` instead.")
Deprecated

Inherited methods

Inherited from:
Product

Concrete fields