Skip to content

Commit

Permalink
move equals function to Num
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed Jul 16, 2017
1 parent e02c686 commit d7585cc
Show file tree
Hide file tree
Showing 44 changed files with 749 additions and 737 deletions.
9 changes: 6 additions & 3 deletions dist/pts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions dist/testapp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions docs/classes/_bound_.bound.html

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions docs/classes/_canvasform_.canvasform.html

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions docs/classes/_canvasspace_.canvasspace.html

Large diffs are not rendered by default.

246 changes: 123 additions & 123 deletions docs/classes/_color_.color.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/_create_.create.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> distribute<wbr>Random</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Create.ts#L6">Create.ts:6</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Create.ts#L6">Create.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
10 changes: 5 additions & 5 deletions docs/classes/_form_.font.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L7">Form.ts:7</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L7">Form.ts:7</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -144,7 +144,7 @@ <h3>face</h3>
<div class="tsd-signature tsd-kind-icon">face<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L6">Form.ts:6</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L6">Form.ts:6</a></li>
</ul>
</aside>
</section>
Expand All @@ -154,7 +154,7 @@ <h3>size</h3>
<div class="tsd-signature tsd-kind-icon">size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L5">Form.ts:5</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L5">Form.ts:5</a></li>
</ul>
</aside>
</section>
Expand All @@ -164,7 +164,7 @@ <h3>style</h3>
<div class="tsd-signature tsd-kind-icon">style<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L7">Form.ts:7</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L7">Form.ts:7</a></li>
</ul>
</aside>
</section>
Expand All @@ -181,7 +181,7 @@ <h3>data</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L15">Form.ts:15</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L15">Form.ts:15</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
30 changes: 15 additions & 15 deletions docs/classes/_form_.form.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> _filled</h3>
<div class="tsd-signature tsd-kind-icon">_filled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;true</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L21">Form.ts:21</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L21">Form.ts:21</a></li>
</ul>
</aside>
</section>
Expand All @@ -134,7 +134,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> _font</h3>
<div class="tsd-signature tsd-kind-icon">_font<span class="tsd-signature-symbol">:</span> <a href="_form_.font.html" class="tsd-signature-type">Font</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L29">Form.ts:29</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L29">Form.ts:29</a></li>
</ul>
</aside>
</section>
Expand All @@ -144,7 +144,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> _stroked</h3>
<div class="tsd-signature tsd-kind-icon">_stroked<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;true</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L25">Form.ts:25</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L25">Form.ts:25</a></li>
</ul>
</aside>
</section>
Expand All @@ -162,15 +162,15 @@ <h3>filled</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L22">Form.ts:22</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L22">Form.ts:22</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L23">Form.ts:23</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L23">Form.ts:23</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -194,15 +194,15 @@ <h3>font</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L30">Form.ts:30</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L30">Form.ts:30</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="_form_.font.html" class="tsd-signature-type">Font</a></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L31">Form.ts:31</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L31">Form.ts:31</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -225,7 +225,7 @@ <h3>space</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L33">Form.ts:33</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L33">Form.ts:33</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="_space_.space.html" class="tsd-signature-type">Space</a></h4>
Expand All @@ -243,15 +243,15 @@ <h3>stroked</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L26">Form.ts:26</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L26">Form.ts:26</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L27">Form.ts:27</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L27">Form.ts:27</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -277,7 +277,7 @@ <h3>draw</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L43">Form.ts:43</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L43">Form.ts:43</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -303,7 +303,7 @@ <h3>fill</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L37">Form.ts:37</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L37">Form.ts:37</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -326,7 +326,7 @@ <h3>point</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L41">Form.ts:41</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L41">Form.ts:41</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -355,7 +355,7 @@ <h3>reset</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L35">Form.ts:35</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L35">Form.ts:35</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
Expand All @@ -372,7 +372,7 @@ <h3>stroke</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/Form.ts#L39">Form.ts:39</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/Form.ts#L39">Form.ts:39</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
28 changes: 14 additions & 14 deletions docs/classes/_linearalgebra_.mat.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> add</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L133">LinearAlgebra.ts:133</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L133">LinearAlgebra.ts:133</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -153,7 +153,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> multiply</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L156">LinearAlgebra.ts:156</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L156">LinearAlgebra.ts:156</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -197,7 +197,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> reflect<wbr>At2DMatrix</h
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L280">LinearAlgebra.ts:280</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L280">LinearAlgebra.ts:280</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -223,7 +223,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> rotate2DMatrix</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L234">LinearAlgebra.ts:234</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L234">LinearAlgebra.ts:234</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -249,7 +249,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> rotate<wbr>At2DMatrix</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L266">LinearAlgebra.ts:266</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L266">LinearAlgebra.ts:266</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -278,7 +278,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> scale2DMatrix</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L226">LinearAlgebra.ts:226</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L226">LinearAlgebra.ts:226</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -304,7 +304,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> scale<wbr>At2DMatrix</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L258">LinearAlgebra.ts:258</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L258">LinearAlgebra.ts:258</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -333,7 +333,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> shear2DMatrix</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L242">LinearAlgebra.ts:242</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L242">LinearAlgebra.ts:242</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -359,7 +359,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> shear<wbr>At2DMatrix</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L273">LinearAlgebra.ts:273</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L273">LinearAlgebra.ts:273</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -388,7 +388,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> transform2D</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L220">LinearAlgebra.ts:220</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L220">LinearAlgebra.ts:220</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -414,7 +414,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> translate2DMatrix</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L250">LinearAlgebra.ts:250</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L250">LinearAlgebra.ts:250</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -440,7 +440,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> transpose</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L216">LinearAlgebra.ts:216</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L216">LinearAlgebra.ts:216</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -463,7 +463,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> zip</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L207">LinearAlgebra.ts:207</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L207">LinearAlgebra.ts:207</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -506,7 +506,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> zip<wbr>Slice</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/22ec2a9/src/LinearAlgebra.ts#L190">LinearAlgebra.ts:190</a></li>
<li>Defined in <a href="https://github.com/williamngan/ptx/blob/e02c686/src/LinearAlgebra.ts#L190">LinearAlgebra.ts:190</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit d7585cc

Please sign in to comment.