FieldOfView2D

class FieldOfView2D<T>(environment: 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.

Parameters

environment
the environment where this sphere of influence is.
owner
the node who owns this sphere of influence.
distance
the distance in meters at which the sight arrives.
aperture
the amplitude of the field of view in radians.

Constructors

Link copied to clipboard
constructor(environment: Physics2DEnvironment<T>, owner: Node<T>, distance: Double, aperture: Double)

Functions

Link copied to clipboard
open override fun influentialNodes(): List<Node<T>>

List of influential nodes. (e.g. nodes withing a field of view).