[ADD] comments to camera and toolbox
This commit is contained in:
@@ -47,7 +47,25 @@ namespace toolbox
|
||||
*/
|
||||
glm::mat4 CreateViewMatrix(entities::Camera& camera);
|
||||
|
||||
/*
|
||||
* @biref go to one coordinate to another with smooting
|
||||
*
|
||||
* @param from one coordinate of the start
|
||||
* @param to one coordinate of where to go
|
||||
* @param amount the amount of smoothing (lower is smoother)
|
||||
*
|
||||
* @return coordinate of where to go
|
||||
*/
|
||||
float Lerp(float from, float to, float amount);
|
||||
|
||||
/*
|
||||
* @biref go from one position to another with smoothing
|
||||
*
|
||||
* @param from position of the start
|
||||
* @param to position of where to go
|
||||
* @param amount the amount of smoothing (lower is smoother)
|
||||
*
|
||||
* @return position of where to go
|
||||
*/
|
||||
glm::vec3 Lerp(glm::vec3 from, glm::vec3 to, float amount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user