java.lang.Object | |
↳ | com.cooliris.media.FloatUtils |
A static class for some useful operations on Floats and Vectors
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This function animates a Tuple3f value to another Tuple3f value
| |||||||||||
This function animates a float value to another float value
| |||||||||||
Function to check whether a point lies inside a rectangle
| |||||||||||
Clamp a float to a lower and upper bound
| |||||||||||
Clamp an integer to a lower and upper bound
| |||||||||||
Clamp a float to an upper bound
| |||||||||||
Clamp a float to a lower bound
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This function animates a Tuple3f value to another Tuple3f value
animVal | : The animating Tuple |
---|---|
targetVal | : The target value for the Tuple |
timeElapsed | : Time elapsed since the last time this function was called |
This function animates a float value to another float value
prevVal | : The previous value (or the animated value) |
---|---|
targetVal | : The target value |
timeElapsed | Time elapsed since the last time this function was called |
Function to check whether a point lies inside a rectangle
left | : the x coordinate of the left most point |
---|---|
right | : the x coordinate of the right most point |
top | : the y coordinate of the top most point |
bottom | : the y coordinate of the bottom most point |
posX | : the input point's x coordinate |
posY | : the input point's y coordinate |
Clamp a float to a lower and upper bound
val | : the input float value |
---|---|
minVal | : the minimum value to use to clamp |
maxVal | : the maximum value to use to clamp |
Clamp an integer to a lower and upper bound
val | : the input float value |
---|---|
minVal | : the minimum value to use to clamp |
maxVal | : the maximum value to use to clamp |
Clamp a float to an upper bound
val | : the input float value |
---|---|
maxVal | : the maximum value to use to clamp |
Clamp a float to a lower bound
val | : the input float value |
---|---|
minVal | : the minimum value to use to clamp |