8000 Integer types in VGL · Issue #640 · vxl/vxl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Integer types in VGL #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scottsorensenvision opened this issue May 24, 2019 · 0 comments
Open

Integer types in VGL #640

scottsorensenvision opened this issue May 24, 2019 · 0 comments
Assignees

Comments

@scottsorensenvision
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0