diff options
author | Simon Puchert <simonpuchert@alice.de> | 2019-07-06 17:41:13 +0200 |
---|---|---|
committer | Simon Puchert <simonpuchert@alice.de> | 2019-07-06 17:41:13 +0200 |
commit | 4b78e17b1587611e3e6cfdb6074f85ffbfc933f8 (patch) | |
tree | e54006d5154bc8c76ed413bf5efda34be0c43d6d /scene/2d/mesh_instance_2d.h | |
parent | 0b6b49a897b35bec53765e1288c32d57afa1a293 (diff) |
Optimize get_closest_point_to_segment*.
By combining all scalar factors we can get rid of a scalar * vector
multiplication and a square root operation, since the resulting formula
only uses the squared length.
Diffstat (limited to 'scene/2d/mesh_instance_2d.h')
0 files changed, 0 insertions, 0 deletions