SpatialOps

indigo.shared.trees.SpatialOps
See theSpatialOps companion object
trait SpatialOps[S]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def bounds(ref: S): BoundingBox

The bounds of this ref

The bounds of this ref

Attributes

def distance(ref: S, vertex: Vertex): Double

Distance from the ref to the vertex

Distance from the ref to the vertex

Attributes

def equals(ref: S, other: S): Boolean

Check if two refs are equal by some appropriate notion of equality.

Check if two refs are equal by some appropriate notion of equality.

Attributes

def intersects(ref: S, bounds: BoundingBox): Boolean

Does the ref intersect the bounds

Does the ref intersect the bounds

Attributes

def intersects(ref: S, lineSegment: LineSegment): Boolean

Does the ref intersect the line segement

Does the ref intersect the line segement

Attributes

def surrounds(ref: S, bounds: BoundingBox): Boolean

The ref's bounds somehow cover the whole area of the provided bounding box.

The ref's bounds somehow cover the whole area of the provided bounding box.

Attributes