Location#
Module for Location class.
- class Location[source]#
Bases:
object
Abstract Location class. Any geometry entity should inherit from this class.
- abstract sample()[source]#
Abstract method for sampling a point from the location. To be implemented in the child class.
- abstract is_inside(point, check_border=False)[source]#
Abstract method for checking if a point is inside the location. To be implemented in the child class.
- Parameters:
point (torch.Tensor) – A tensor point to be checked.
check_border (bool) – A boolean that determines whether the border of the location is considered checked to be considered inside or not. Defaults to
False
.