# `class tinylib.Camera`

Available on all platforms

derived from Camera.hx in molehill examples written by Nicolas Cannasse

I could not completely understand the original code ... orz

## Instance Fields

### `var far:Float`

far plane

### `var fov:Float`

fov angle

### `var m:Matrix4`

### `var mcam:Matrix4`

### `var mproj:Matrix4`

### `var near:Float`

near plane

### `var pos:Point3D`

### `var ratio:Float`

aspect ratio

### `var target:Point3D`

### `var up:Point3D`

### `var zoom:Float`

zoom

### `function new(f:Float, z:Float, r:Float, ne:Float, fa:Float):Void`

### `function clone():Camera`

### `function determineFov(h:Int, l:Float):Void`

### `function get_far():Float`

getter of `far`

### `function get_fov():Float`

getter of `fov`

### `function get_m():Matrix4`

### `function get_mcam():Matrix4`

### `function get_mproj():Matrix4`

### `function get_near():Float`

getter of `near`

### `function get_pos():Point3D`

### `function get_ratio():Float`

getter of `ratio`

### `function get_target():Point3D`

### `function get_up():Point3D`

### `function get_zoom():Float`

getter of `zoom`

### `function set_far(f:Float):Float`

setter of `far`

### `function set_fov(f:Float):Float`

setter of `fov`

### `function set_m(mat:Matrix4):Matrix4`

### `function set_mcam(mat:Matrix4):Matrix4`

### `function set_mproj(mat:Matrix4):Matrix4`

### `function set_near(n:Float):Float`

setter of `near`

### `function set_pos(p:Point3D):Point3D`

### `function set_ratio(r:Float):Float`

setter of `ratio`

### `function set_target(p:Point3D):Point3D`

### `function set_up(p:Point3D):Point3D`

### `function set_zoom(z:Float):Float`

setter of `zoom`

### `function update():Void`