leapmotion / HIRO

http://leapmotion.github.io/HIRO
3 stars 0 forks source link

fov is undefined` error from #3

Open wizztjh opened 9 years ago

wizztjh commented 9 years ago

Having TypeError: fov is undefined error from

this.FovToProjection = function( fov, rightHanded /* = true */, zNear /* = 0.01 */, zFar /* = 10000.0 */ )
{
    var fovPort = {
        upTan: Math.tan(fov.upDegrees * Math.PI / 180.0),
        downTan: Math.tan(fov.downDegrees * Math.PI / 180.0),
        leftTan: Math.tan(fov.leftDegrees * Math.PI / 180.0),
        rightTan: Math.tan(fov.rightDegrees * Math.PI / 180.0)
    };
    return this.FovPortToProjection(fovPort, rightHanded, zNear, zFar);
};