LineSegment

indigo.shared.geometry.LineSegment
See theLineSegment companion object
final case class LineSegment(start: Vertex, end: Vertex)

Attributes

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

Members list

Value members

Concrete methods

def bottom: Double
def contains(vertex: Vertex, tolerance: Double): Boolean
def contains(vertex: Vertex): Boolean
def contains(vector: Vector2): Boolean
def isFacingVertex(vertex: Vertex): Boolean
def left: Double
def length: Double
def moveBy(amount: Vertex): LineSegment
def moveBy(amount: Vector2): LineSegment
def moveEndBy(amount: Vertex): LineSegment
def moveEndBy(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

Reflects the incoming 'ray' off of this line segment as if it were a surface.

Reflects the incoming 'ray' off of this line segment as if it were a surface.

Attributes

def right: Double
def sdf(vertex: Vertex): Double
def toLine: Line
def top: Double
def ~==(other: LineSegment): Boolean

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

val center: Vertex