version 0.6.0
type_shape::abs_shape_get_distance Interface Reference

Public Member Functions

pure subroutine abs_shape_get_distance (shape, point, distance, direction)
 

Detailed Description

If the point lies inside the shape, the distance is negative and the direction points to the closest point on the shape. If the point lies outiside the shape, the distance is positive and the direction points in the opposite direction to the closest point on the shape.

Parameters
[in]shapeany shape
[in]pointany point
[out]distancesigned closest distance from the point to the shape
[out]directionsigned direction from the point to the closest point on the shape

The documentation for this interface was generated from the following file: