Skip to content

Commit 3465c6b

Browse files
committed
added methods to point class
1 parent c3ab3ec commit 3465c6b

File tree

7 files changed

+432
-60
lines changed

7 files changed

+432
-60
lines changed

docs/Color.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ <h5>Parameters:</h5>
322322

323323
<dt class="tag-source">Source:</dt>
324324
<dd class="tag-source"><ul class="dummy"><li>
325-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line451">line 451</a>
325+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line462">line 462</a>
326326
</li></ul></dd>
327327

328328

@@ -525,7 +525,7 @@ <h5>Parameters:</h5>
525525

526526
<dt class="tag-source">Source:</dt>
527527
<dd class="tag-source"><ul class="dummy"><li>
528-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line610">line 610</a>
528+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line621">line 621</a>
529529
</li></ul></dd>
530530

531531

@@ -726,7 +726,7 @@ <h5>Parameters:</h5>
726726

727727
<dt class="tag-source">Source:</dt>
728728
<dd class="tag-source"><ul class="dummy"><li>
729-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line621">line 621</a>
729+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line632">line 632</a>
730730
</li></ul></dd>
731731

732732

@@ -927,7 +927,7 @@ <h5>Parameters:</h5>
927927

928928
<dt class="tag-source">Source:</dt>
929929
<dd class="tag-source"><ul class="dummy"><li>
930-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line491">line 491</a>
930+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line502">line 502</a>
931931
</li></ul></dd>
932932

933933

@@ -1110,7 +1110,7 @@ <h5>Parameters:</h5>
11101110

11111111
<dt class="tag-source">Source:</dt>
11121112
<dd class="tag-source"><ul class="dummy"><li>
1113-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line505">line 505</a>
1113+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line516">line 516</a>
11141114
</li></ul></dd>
11151115

11161116

@@ -1156,13 +1156,13 @@ <h5>Parameters:</h5>
11561156
</div>
11571157

11581158
<nav>
1159-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Color.html">Color</a></li><li><a href="Engine.html">Engine</a></li><li><a href="Point.html">Point</a></li><li><a href="SimplexNoise.html">SimplexNoise</a></li><li><a href="XOR128.html">XOR128</a></li></ul>
1159+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Color.html">Color</a></li><li><a href="Engine.html">Engine</a></li><li><a href="Point.html">Point</a></li><li><a href="SimplexNoise.html">SimplexNoise</a></li></ul>
11601160
</nav>
11611161

11621162
<br class="clear">
11631163

11641164
<footer>
1165-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Aug 31 2022 19:10:56 GMT+0200 (Central European Summer Time)
1165+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Oct 13 2022 11:14:24 GMT+0200 (Central European Summer Time)
11661166
</footer>
11671167

11681168
<script> prettyPrint(); </script>

docs/Engine.html

Lines changed: 91 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ <h4 class="name" id="canvas"><span class="type-signature"></span>canvas<span cla
330330

331331
<dt class="tag-source">Source:</dt>
332332
<dd class="tag-source"><ul class="dummy"><li>
333-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line376">line 376</a>
333+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line380">line 380</a>
334334
</li></ul></dd>
335335

336336

@@ -392,7 +392,7 @@ <h4 class="name" id="ctx"><span class="type-signature"></span>ctx<span class="ty
392392

393393
<dt class="tag-source">Source:</dt>
394394
<dd class="tag-source"><ul class="dummy"><li>
395-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line360">line 360</a>
395+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line364">line 364</a>
396396
</li></ul></dd>
397397

398398

@@ -454,7 +454,7 @@ <h4 class="name" id="frameCount"><span class="type-signature"></span>frameCount<
454454

455455
<dt class="tag-source">Source:</dt>
456456
<dd class="tag-source"><ul class="dummy"><li>
457-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line384">line 384</a>
457+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line388">line 388</a>
458458
</li></ul></dd>
459459

460460

@@ -516,7 +516,7 @@ <h4 class="name" id="frameRate"><span class="type-signature"></span>frameRate<sp
516516

517517
<dt class="tag-source">Source:</dt>
518518
<dd class="tag-source"><ul class="dummy"><li>
519-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line392">line 392</a>
519+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line396">line 396</a>
520520
</li></ul></dd>
521521

522522

@@ -578,7 +578,7 @@ <h4 class="name" id="frameRate"><span class="type-signature"></span>frameRate<sp
578578

579579
<dt class="tag-source">Source:</dt>
580580
<dd class="tag-source"><ul class="dummy"><li>
581-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line400">line 400</a>
581+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line404">line 404</a>
582582
</li></ul></dd>
583583

584584

@@ -640,7 +640,69 @@ <h4 class="name" id="height"><span class="type-signature"></span>height<span cla
640640

641641
<dt class="tag-source">Source:</dt>
642642
<dd class="tag-source"><ul class="dummy"><li>
643-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line414">line 414</a>
643+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line418">line 418</a>
644+
</li></ul></dd>
645+
646+
647+
648+
649+
650+
651+
652+
</dl>
653+
654+
655+
656+
657+
658+
659+
660+
661+
<h4 class="name" id="is_recording"><span class="type-signature"></span>is_recording<span class="type-signature"></span></h4>
662+
663+
664+
665+
666+
<div class="description">
667+
Get the current recording state
668+
</div>
669+
670+
671+
672+
673+
674+
675+
676+
<dl class="details">
677+
678+
679+
680+
681+
682+
683+
684+
685+
686+
687+
688+
689+
690+
691+
692+
693+
694+
695+
696+
697+
698+
699+
700+
701+
702+
703+
<dt class="tag-source">Source:</dt>
704+
<dd class="tag-source"><ul class="dummy"><li>
705+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line425">line 425</a>
644706
</li></ul></dd>
645707

646708

@@ -702,7 +764,7 @@ <h4 class="name" id="recording"><span class="type-signature"></span>recording<sp
702764

703765
<dt class="tag-source">Source:</dt>
704766
<dd class="tag-source"><ul class="dummy"><li>
705-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line368">line 368</a>
767+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line372">line 372</a>
706768
</li></ul></dd>
707769

708770

@@ -764,7 +826,7 @@ <h4 class="name" id="width"><span class="type-signature"></span>width<span class
764826

765827
<dt class="tag-source">Source:</dt>
766828
<dd class="tag-source"><ul class="dummy"><li>
767-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line407">line 407</a>
829+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line411">line 411</a>
768830
</li></ul></dd>
769831

770832

@@ -916,7 +978,7 @@ <h5>Parameters:</h5>
916978

917979
<dt class="tag-source">Source:</dt>
918980
<dd class="tag-source"><ul class="dummy"><li>
919-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line195">line 195</a>
981+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line199">line 199</a>
920982
</li></ul></dd>
921983

922984

@@ -1056,7 +1118,7 @@ <h5>Parameters:</h5>
10561118

10571119
<dt class="tag-source">Source:</dt>
10581120
<dd class="tag-source"><ul class="dummy"><li>
1059-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line330">line 330</a>
1121+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line334">line 334</a>
10601122
</li></ul></dd>
10611123

10621124

@@ -1216,7 +1278,7 @@ <h5>Parameters:</h5>
12161278

12171279
<dt class="tag-source">Source:</dt>
12181280
<dd class="tag-source"><ul class="dummy"><li>
1219-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line275">line 275</a>
1281+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line279">line 279</a>
12201282
</li></ul></dd>
12211283

12221284

@@ -1304,7 +1366,7 @@ <h4 class="name" id="draw"><span class="type-signature"></span>draw<span class="
13041366

13051367
<dt class="tag-source">Source:</dt>
13061368
<dd class="tag-source"><ul class="dummy"><li>
1307-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line354">line 354</a>
1369+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line358">line 358</a>
13081370
</li></ul></dd>
13091371

13101372

@@ -1464,7 +1526,7 @@ <h5>Parameters:</h5>
14641526

14651527
<dt class="tag-source">Source:</dt>
14661528
<dd class="tag-source"><ul class="dummy"><li>
1467-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line317">line 317</a>
1529+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line321">line 321</a>
14681530
</li></ul></dd>
14691531

14701532

@@ -1624,7 +1686,7 @@ <h5>Parameters:</h5>
16241686

16251687
<dt class="tag-source">Source:</dt>
16261688
<dd class="tag-source"><ul class="dummy"><li>
1627-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line310">line 310</a>
1689+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line314">line 314</a>
16281690
</li></ul></dd>
16291691

16301692

@@ -1784,7 +1846,7 @@ <h5>Parameters:</h5>
17841846

17851847
<dt class="tag-source">Source:</dt>
17861848
<dd class="tag-source"><ul class="dummy"><li>
1787-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line324">line 324</a>
1849+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line328">line 328</a>
17881850
</li></ul></dd>
17891851

17901852

@@ -1872,7 +1934,7 @@ <h4 class="name" id="loop"><span class="type-signature"></span>loop<span class="
18721934

18731935
<dt class="tag-source">Source:</dt>
18741936
<dd class="tag-source"><ul class="dummy"><li>
1875-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line102">line 102</a>
1937+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line105">line 105</a>
18761938
</li></ul></dd>
18771939

18781940

@@ -2032,7 +2094,7 @@ <h5>Parameters:</h5>
20322094

20332095
<dt class="tag-source">Source:</dt>
20342096
<dd class="tag-source"><ul class="dummy"><li>
2035-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line282">line 282</a>
2097+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line286">line 286</a>
20362098
</li></ul></dd>
20372099

20382100

@@ -2192,7 +2254,7 @@ <h5>Parameters:</h5>
21922254

21932255
<dt class="tag-source">Source:</dt>
21942256
<dd class="tag-source"><ul class="dummy"><li>
2195-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line289">line 289</a>
2257+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line293">line 293</a>
21962258
</li></ul></dd>
21972259

21982260

@@ -2352,7 +2414,7 @@ <h5>Parameters:</h5>
23522414

23532415
<dt class="tag-source">Source:</dt>
23542416
<dd class="tag-source"><ul class="dummy"><li>
2355-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line303">line 303</a>
2417+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line307">line 307</a>
23562418
</li></ul></dd>
23572419

23582420

@@ -2512,7 +2574,7 @@ <h5>Parameters:</h5>
25122574

25132575
<dt class="tag-source">Source:</dt>
25142576
<dd class="tag-source"><ul class="dummy"><li>
2515-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line296">line 296</a>
2577+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line300">line 300</a>
25162578
</li></ul></dd>
25172579

25182580

@@ -2600,7 +2662,7 @@ <h4 class="name" id="noLoop"><span class="type-signature"></span>noLoop<span cla
26002662

26012663
<dt class="tag-source">Source:</dt>
26022664
<dd class="tag-source"><ul class="dummy"><li>
2603-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line109">line 109</a>
2665+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line112">line 112</a>
26042666
</li></ul></dd>
26052667

26062668

@@ -2688,7 +2750,7 @@ <h4 class="name" id="preload"><span class="type-signature"></span>preload<span c
26882750

26892751
<dt class="tag-source">Source:</dt>
26902752
<dd class="tag-source"><ul class="dummy"><li>
2691-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line344">line 344</a>
2753+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line348">line 348</a>
26922754
</li></ul></dd>
26932755

26942756

@@ -2845,7 +2907,7 @@ <h5>Parameters:</h5>
28452907

28462908
<dt class="tag-source">Source:</dt>
28472909
<dd class="tag-source"><ul class="dummy"><li>
2848-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line152">line 152</a>
2910+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line156">line 156</a>
28492911
</li></ul></dd>
28502912

28512913

@@ -2990,7 +3052,7 @@ <h5>Parameters:</h5>
29903052

29913053
<dt class="tag-source">Source:</dt>
29923054
<dd class="tag-source"><ul class="dummy"><li>
2993-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line134">line 134</a>
3055+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line138">line 138</a>
29943056
</li></ul></dd>
29953057

29963058

@@ -3078,7 +3140,7 @@ <h4 class="name" id="setup"><span class="type-signature"></span>setup<span class
30783140

30793141
<dt class="tag-source">Source:</dt>
30803142
<dd class="tag-source"><ul class="dummy"><li>
3081-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line349">line 349</a>
3143+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line353">line 353</a>
30823144
</li></ul></dd>
30833145

30843146

@@ -3166,7 +3228,7 @@ <h4 class="name" id="startRecording"><span class="type-signature"></span>startRe
31663228

31673229
<dt class="tag-source">Source:</dt>
31683230
<dd class="tag-source"><ul class="dummy"><li>
3169-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line116">line 116</a>
3231+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line119">line 119</a>
31703232
</li></ul></dd>
31713233

31723234

@@ -3254,7 +3316,7 @@ <h4 class="name" id="stopRecording"><span class="type-signature"></span>stopReco
32543316

32553317
<dt class="tag-source">Source:</dt>
32563318
<dd class="tag-source"><ul class="dummy"><li>
3257-
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line125">line 125</a>
3319+
<a href="engine.js.html">engine.js</a>, <a href="engine.js.html#line129">line 129</a>
32583320
</li></ul></dd>
32593321

32603322

@@ -3300,13 +3362,13 @@ <h4 class="name" id="stopRecording"><span class="type-signature"></span>stopReco
33003362
</div>
33013363

33023364
<nav>
3303-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Color.html">Color</a></li><li><a href="Engine.html">Engine</a></li><li><a href="Point.html">Point</a></li><li><a href="SimplexNoise.html">SimplexNoise</a></li><li><a href="XOR128.html">XOR128</a></li></ul>
3365+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Color.html">Color</a></li><li><a href="Engine.html">Engine</a></li><li><a href="Point.html">Point</a></li><li><a href="SimplexNoise.html">SimplexNoise</a></li></ul>
33043366
</nav>
33053367

33063368
<br class="clear">
33073369

33083370
<footer>
3309-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Wed Aug 31 2022 19:10:56 GMT+0200 (Central European Summer Time)
3371+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Oct 13 2022 11:14:24 GMT+0200 (Central European Summer Time)
33103372
</footer>
33113373

33123374
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)