You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an integer instantiation for many class templates and functions that may not make sense. For example vgl_distance is defined for many geometric objects and is not treated differently for integers. Many of the methods rely on the square root etc. vgl_intersection only instantiates certain functions which are deemed valid for integer operations. These are exclusively used for functions related to boxes, but there is probably an arguement to be made about certain other integer type intersections being valid. Defining specialized functions for integer types may be the right way to go, but should be consistently implemented across vgl.
A problem for me has arisen when trying to extend a templated class for which an integer version is defined (vgl_closest_point). I was adding a polygon-to-line closest point. I was using vgl_intersection to check for intersections between the polygon and the line, however this would rely on instantiating a template for integer type intersections when integer type vgl_closest_point is instantiated. This caused some hard to track down linking error.
The text was updated successfully, but these errors were encountered:
There is an integer instantiation for many class templates and functions that may not make sense. For example vgl_distance is defined for many geometric objects and is not treated differently for integers. Many of the methods rely on the square root etc. vgl_intersection only instantiates certain functions which are deemed valid for integer operations. These are exclusively used for functions related to boxes, but there is probably an arguement to be made about certain other integer type intersections being valid. Defining specialized functions for integer types may be the right way to go, but should be consistently implemented across vgl.
A problem for me has arisen when trying to extend a templated class for which an integer version is defined (vgl_closest_point). I was adding a polygon-to-line closest point. I was using vgl_intersection to check for intersections between the polygon and the line, however this would rely on instantiating a template for integer type intersections when integer type vgl_closest_point is instantiated. This caused some hard to track down linking error.
The text was updated successfully, but these errors were encountered: