From: <no...@so...> - 2002-12-24 06:45:46
|
Feature Requests item #627053, was opened at 2002-10-22 14:07 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=437250&aid=627053&group_id=43735 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Chad Austin (aegis) Assigned to: Nobody/Anonymous (nobody) Summary: gmtl::Math::clamp Initial Comment: I would love a function that lets me do something like: // clamp to range [-10, 10] float value = gmtl::Math::clamp(x, -10, 10); I always end up duplicating this in projects that use gmtl... ---------------------------------------------------------------------- >Comment By: Ben Scott (nonchocoboy) Date: 2002-12-24 00:45 Message: Logged In: YES user_id=173947 Actually, this appears to have been completed by subatomic in revision 1.31 of Math.h on the 15 of September. This functionality has been in GMTL since version 0.1.9! ---------------------------------------------------------------------- Comment By: Ben Scott (nonchocoboy) Date: 2002-12-22 19:50 Message: Logged In: YES user_id=173947 Pushing this back to the 0.1.14 release of GMTL ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=437250&aid=627053&group_id=43735 |