1010var p5 = require ( '../core/core' ) ;
1111
1212/**
13- * set camera position
13+ * sets camera position
1414 * @method camera
1515 * @param {Number } x camera postion value on x axis
1616 * @param {Number } y camera postion value on y axis
@@ -19,7 +19,6 @@ var p5 = require('../core/core');
1919 * @example
2020 * <div>
2121 * <code>
22- * //please call this function before doing any transformation
2322 * function setup(){
2423 * createCanvas(windowWidth, windowHeight, 'webgl');
2524 * }
@@ -41,14 +40,13 @@ p5.prototype.camera = function(x, y, z){
4140} ;
4241
4342/**
44- * setup perspective camera
43+ * sets perspective camera
4544 * @method perspective
4645 * @param {Number } fovy camera frustum vertical field of view,
4746 * from bottom to top of view, in degrees
48- * @param {Number } aspect camera frustum aspect ratio,
49- * window width divided by window height
50- * @param {Number } near camera frustum near plane
51- * @param {Number } far camera frustum far plane
47+ * @param {Number } aspect camera frustum aspect ratio
48+ * @param {Number } near frustum near plane length
49+ * @param {Number } far frustum far plane length
5250 * @return {p5 }
5351 * @example
5452 * <div>
@@ -98,8 +96,6 @@ p5.prototype.perspective = function(fovy,aspect,near,far) {
9896 * @example
9997 * <div>
10098 * <code>
101- * //drag mouse to toggle the world
102- * //you will see there's no vanish point
10399 * function setup(){
104100 * createCanvas(windowWidth, windowHeight, 'webgl');
105101 * ortho(-width/2, width/2, height/2, -height/2, 0.1, 100);
0 commit comments