Package it.unibo.alchemist.model.implementations.geometry.euclidean2d

Types

Link copied to clipboard
abstract class AbstractConvexPolygon : ConvexPolygon

An abstract ConvexPolygon providing a convexity test.

Link copied to clipboard

MutableConvexPolygon partly delegated to AwtEuclidean2DShape and java.awt.geom. Each modification operation on this object has a time complexity of O(n), where n is the number of vertices/edges. Collinear points are allowed.

Link copied to clipboard
object AwtShapeExtension

Collection of extensions to Java AWT meant to simplify its usage as geometric engine.

Link copied to clipboard
class FieldOfView2D<T>(env: Physics2DEnvironment<T>, owner: Node<T>, distance: Double, aperture: Double) : InfluenceSphere2D<T>

A sphere of influence representing the sight of a node in the Euclidean world.

Link copied to clipboard
open class InfluenceSphere2D<T>(env: Physics2DEnvironment<T>, owner: Node<T>, shape: Euclidean2DShape) : InfluenceSphere

A sphere of influence in the Euclidean world.

Link copied to clipboard
data class Segment2DImpl<P : Vector2D<P>>(first: P, second: P) : Segment2D<P>

Implementation of a Segment2D.

Link copied to clipboard
class SlopeInterceptLine2D<P : Vector2D<P>> : Line2D<P>

A Line2D represented in the slope-intercept form: y = slope * x + yIntercept. Doubles are only compared with MathUtils.fuzzyEquals.