mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 01:00:46 +00:00
util: use glm_clamp_zo to clamp between 0 and 1
This commit is contained in:
@@ -322,7 +322,7 @@ glm_percent(float from, float to, float current) {
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
float
|
float
|
||||||
glm_percentc(float from, float to, float current) {
|
glm_percentc(float from, float to, float current) {
|
||||||
return glm_clamp(glm_percent(from, to, current), 0.0f, 1.0f);
|
return glm_clamp_zo(glm_percent(from, to, current));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Reference in New Issue
Block a user