Registered Member
|
Hello!
What is a concise and preferred way to apply transformation to instance of ParametrizedLine class? Something like Hyperplane::transform. |
Registered Member
|
Ok, lets look at some code:
Is there any more concise way? |
Moderator
|
Nothing shorter for now, but feel free to propose a patch adding ParametrizedLine::transform methods similar to HyperPlane::transform with respective unit tests in test/geo_parametrizedline.cpp.
|
Registered Member
|
|
Moderator
|
Thank you for the patch. For the record, it is now applied in the default branch.
|
Registered Member
|
By the way I have a question about Hyperplane::transform implementation. Lets look at this code:
It prints the following to screen:
Here we apply scaling transformation to Hyperplane and the resulting plane doesn't have unit normal vector. It leads to incorrect distance calculation from transformed plane to a point. Is this correct behavior? |
Moderator
|
|
Moderator
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]