Obstacle2D

interface Obstacle2D<V : Vector2D<V>?> : Obstacle<V> , Shape

An Obstacle in a bidimensional space.

Parameters

<V>

the vector type for the space in which this obstacle is placed.

Inheritors

Functions

Link copied to clipboard
abstract fun contains(p: Double, p1: Double): Boolean
Link copied to clipboard
abstract fun getBounds(): Rectangle
Link copied to clipboard
abstract fun getBounds2D(): Rectangle2D
Link copied to clipboard
abstract fun getId(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun intersects(p: Double, p1: Double, p2: Double, p3: Double): Boolean
Link copied to clipboard
abstract fun nearestIntersection(p: V, p1: V): V
Link copied to clipboard
abstract fun next(p: V, p1: V): V
Link copied to clipboard

Obtains the vertices of a polygonal shape. Any curved segment connecting two points will be considered as a straight line between them.