mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 17:04:35 +00:00
Experiment to do
This commit is contained in:
parent
09a8d5a621
commit
72a01d3432
@ -255,7 +255,7 @@ namespace glm
|
|||||||
{
|
{
|
||||||
valType rad = glm::radians(fov);
|
valType rad = glm::radians(fov);
|
||||||
valType h = glm::cos(valType(0.5) * rad) / glm::sin(valType(0.5) * rad);
|
valType h = glm::cos(valType(0.5) * rad) / glm::sin(valType(0.5) * rad);
|
||||||
valType w = h * height / width;
|
valType w = h * height / width; ///todo max(width , Height) / min(width , Height)?
|
||||||
|
|
||||||
detail::tmat4x4<valType> Result(valType(0));
|
detail::tmat4x4<valType> Result(valType(0));
|
||||||
Result[0][0] = w;
|
Result[0][0] = w;
|
||||||
|
Loading…
Reference in New Issue
Block a user