class foxes.utils.geom2d.HalfPlane(foxes.utils.geom2d.AreaGeometry)[source]

This class represents a half plane in 2d.

Attributes

centre: numpy.ndarray

The centre point, shape: (2,)

n: numpy.ndarray

The direction vector to the inside, shape: (2,)

n: numpy.ndarray

The direction vector orthogonal to n, shape: (2,)

Public members

HalfPlane(centre, n)[source]

Constructor.

p_min()[source]

Returns minimal (x,y) point.

p_max()[source]

Returns maximal (x,y) point.

points_distance(points, return_nearest=False)[source]

Calculates point distances wrt boundary.

points_inside(points)[source]

Tests if points are inside the geometry.

add_to_figure(ax, show_boundary=True, fill_mode=None, ...)[source]

Add image to (x,y) figure.

inverse()[source]

Get the inverted geometry