all repos — simplyrpg @ dfcba4326868b0ff06cfa12c0f6a4ec2c688eb52

Fork of https://github.com/harperd1/simplyRPG — multi-map VTT, token visibility, dark theme, stream HUD

libraries/EaselJS_docs/classes/Point.html (view raw)

  1<!DOCTYPE html>
  2<html lang="en">
  3<head>
  4    <meta charset="utf-8">
  5    <link rel="stylesheet" href="../assets/css/yui-cssgrids-min.css">
  6    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
  7    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
  8    <link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
  9    <script src="../assets/js/yui-source.js"></script>
 10	<title>EaselJS v1.0.0 API Documentation : Point</title>
 11</head>
 12<body class="yui3-skin-sam">
 13
 14<div id="doc">
 15    <div id="hd" class="yui3-g header">
 16        <div class="yui3-u-3-4">
 17            
 18                <h1><a href="http://www.createjs.com/easeljs"><img src="../assets/docs-icon-EaselJS.png" title="EaselJS"></a></h1>
 19            
 20        </div>
 21        <div class="version">
 22            <em>API Documentation for: 1.0.0</em>
 23        </div>
 24    </div>
 25    <div id="bd" class="yui3-g">
 26
 27        <div class="yui3-u-1-4">
 28            <div id="docs-sidebar" class="sidebar apidocs">
 29                <div id="api-list">
 30    <h2 class="off-left">APIs</h2>
 31    <div id="api-tabview" class="tabview">
 32        <ul class="tabs">
 33            <li><a href="#api-classes">Classes</a></li>
 34        </ul>
 35
 36        <div id="api-tabview-filter">
 37            <input type="search" id="api-filter" placeholder="Type to filter APIs">
 38        </div>
 39
 40        <div id="api-tabview-panel">
 41            <ul id="api-classes" class="apis classes">
 42            
 43                <li><a href="../classes/AlphaMapFilter.html">AlphaMapFilter</a></li>
 44            
 45                <li><a href="../classes/AlphaMaskFilter.html">AlphaMaskFilter</a></li>
 46            
 47                <li><a href="../classes/Bitmap.html">Bitmap</a></li>
 48            
 49                <li><a href="../classes/BitmapCache.html">BitmapCache</a></li>
 50            
 51                <li><a href="../classes/BitmapText.html">BitmapText</a></li>
 52            
 53                <li><a href="../classes/BlurFilter.html">BlurFilter</a></li>
 54            
 55                <li><a href="../classes/ButtonHelper.html">ButtonHelper</a></li>
 56            
 57                <li><a href="../classes/ColorFilter.html">ColorFilter</a></li>
 58            
 59                <li><a href="../classes/ColorMatrix.html">ColorMatrix</a></li>
 60            
 61                <li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li>
 62            
 63                <li><a href="../classes/Container.html">Container</a></li>
 64            
 65                <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
 66            
 67                <li><a href="../classes/DisplayProps.html">DisplayProps</a></li>
 68            
 69                <li><a href="../classes/DOMElement.html">DOMElement</a></li>
 70            
 71                <li><a href="../classes/EaselJS.html">EaselJS</a></li>
 72            
 73                <li><a href="../classes/Event.html">Event</a></li>
 74            
 75                <li><a href="../classes/EventDispatcher.html">EventDispatcher</a></li>
 76            
 77                <li><a href="../classes/Filter.html">Filter</a></li>
 78            
 79                <li><a href="../classes/Graphics.html">Graphics</a></li>
 80            
 81                <li><a href="../classes/Graphics.Arc.html">Graphics.Arc</a></li>
 82            
 83                <li><a href="../classes/Graphics.ArcTo.html">Graphics.ArcTo</a></li>
 84            
 85                <li><a href="../classes/Graphics.BeginPath.html">Graphics.BeginPath</a></li>
 86            
 87                <li><a href="../classes/Graphics.BezierCurveTo.html">Graphics.BezierCurveTo</a></li>
 88            
 89                <li><a href="../classes/Graphics.Circle.html">Graphics.Circle</a></li>
 90            
 91                <li><a href="../classes/Graphics.ClosePath.html">Graphics.ClosePath</a></li>
 92            
 93                <li><a href="../classes/Graphics.Ellipse.html">Graphics.Ellipse</a></li>
 94            
 95                <li><a href="../classes/Graphics.Fill.html">Graphics.Fill</a></li>
 96            
 97                <li><a href="../classes/Graphics.LineTo.html">Graphics.LineTo</a></li>
 98            
 99                <li><a href="../classes/Graphics.MoveTo.html">Graphics.MoveTo</a></li>
100            
101                <li><a href="../classes/Graphics.PolyStar.html">Graphics.PolyStar</a></li>
102            
103                <li><a href="../classes/Graphics.QuadraticCurveTo.html">Graphics.QuadraticCurveTo</a></li>
104            
105                <li><a href="../classes/Graphics.Rect.html">Graphics.Rect</a></li>
106            
107                <li><a href="../classes/Graphics.RoundRect.html">Graphics.RoundRect</a></li>
108            
109                <li><a href="../classes/Graphics.Stroke.html">Graphics.Stroke</a></li>
110            
111                <li><a href="../classes/Graphics.StrokeDash.html">Graphics.StrokeDash</a></li>
112            
113                <li><a href="../classes/Graphics.StrokeStyle.html">Graphics.StrokeStyle</a></li>
114            
115                <li><a href="../classes/Matrix2D.html">Matrix2D</a></li>
116            
117                <li><a href="../classes/MouseEvent.html">MouseEvent</a></li>
118            
119                <li><a href="../classes/MovieClip.html">MovieClip</a></li>
120            
121                <li><a href="../classes/MovieClipPlugin.html">MovieClipPlugin</a></li>
122            
123                <li><a href="../classes/Point.html">Point</a></li>
124            
125                <li><a href="../classes/Rectangle.html">Rectangle</a></li>
126            
127                <li><a href="../classes/Shadow.html">Shadow</a></li>
128            
129                <li><a href="../classes/Shape.html">Shape</a></li>
130            
131                <li><a href="../classes/Sprite.html">Sprite</a></li>
132            
133                <li><a href="../classes/SpriteSheet.html">SpriteSheet</a></li>
134            
135                <li><a href="../classes/SpriteSheetBuilder.html">SpriteSheetBuilder</a></li>
136            
137                <li><a href="../classes/SpriteSheetUtils.html">SpriteSheetUtils</a></li>
138            
139                <li><a href="../classes/Stage.html">Stage</a></li>
140            
141                <li><a href="../classes/StageGL.html">StageGL</a></li>
142            
143                <li><a href="../classes/Text.html">Text</a></li>
144            
145                <li><a href="../classes/Ticker.html">Ticker</a></li>
146            
147                <li><a href="../classes/Touch.html">Touch</a></li>
148            
149                <li><a href="../classes/UID.html">UID</a></li>
150            
151                <li><a href="../classes/Utility Methods.html">Utility Methods</a></li>
152            
153                <li><a href="../classes/VideoBuffer.html">VideoBuffer</a></li>
154            
155                <li><a href="../classes/WebGLInspector.html">WebGLInspector</a></li>
156            
157            </ul>
158
159            <ul id="api-modules" class="apis modules">
160            
161                <li><a href="../modules/CreateJS.html">CreateJS</a></li>
162            
163                <li><a href="../modules/EaselJS.html">EaselJS</a></li>
164            
165            </ul>
166        </div>
167    </div>
168</div>
169
170            </div>
171        </div>
172        <div class="yui3-u-3-4">
173            <div id="api-options">
174        Show:
175        <label for="api-show-inherited">
176            <input type="checkbox" id="api-show-inherited" checked>
177            Inherited
178        </label>
179
180        <label for="api-show-protected">
181            <input type="checkbox" id="api-show-protected">
182            Protected
183        </label>
184
185        <label for="api-show-private">
186            <input type="checkbox" id="api-show-private">
187            Private
188        </label>
189        <label for="api-show-deprecated">
190            <input type="checkbox" id="api-show-deprecated">
191            Deprecated
192        </label>
193
194    </div>
195            <div class="apidocs">
196                <div id="docs-main">
197                    <div class="content">
198                        <h1>Point Class</h1>
199<div class="box meta">
200    
201
202    
203
204    
205        <div class="foundat">
206            Defined in: <a href="../files/easeljs_geom_Point.js.html#l41"><code>Point:41</code></a>
207        </div>
208    
209
210    
211        
212            Module: <a href="../modules/EaselJS.html">EaselJS</a>
213        
214    
215
216    
217</div>
218
219
220
221<div class="box intro">
222    <p>Represents a point on a 2 dimensional x / y coordinate system.</p>
223<h4>Example</h4>
224
225<pre class="code prettyprint"><code> var point = new createjs.Point(0, 100);</code></pre>
226
227</div>
228
229
230    <div class="constructor">
231        <h2>Constructor</h2>
232        <div id="method_Point" class="method item">
233    <h3 class="name"><code>Point</code></h3>
234
235    
236        <div class="args">
237            <span class="paren">(</span><ul class="args-list inline commas">
238            
239                <li class="arg">
240                    
241                        <code class="optional">[x=0]</code>
242                    
243                </li>
244            
245                <li class="arg">
246                    
247                        <code class="optional">[y=0]</code>
248                    
249                </li>
250            
251            </ul><span class="paren">)</span>
252        </div>
253    
254
255    
256
257    
258
259    
260
261    
262
263    
264
265    
266
267    
268
269    <div class="meta">
270        
271            
272                
273                <p>
274                
275                Defined in
276                
277            
278        
279        
280        <a href="../files/easeljs_geom_Point.js.html#l41"><code>Point:41</code></a>
281        
282        </p>
283
284
285        
286
287        
288    </div>
289
290    <div class="description">
291        
292    </div>
293
294    
295        <div class="params">
296            <h4>Parameters:</h4>
297
298            <ul class="params-list">
299            
300                <li class="param">
301                    
302                        <code class="param-name optional">[x=0]</code>
303                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
304                        <span class="flag optional" title="This parameter is optional.">optional</span>
305                    
306
307                    
308
309                    <div class="param-description">
310                        <p>X position.</p>
311
312                    </div>
313
314                    
315                </li>
316            
317                <li class="param">
318                    
319                        <code class="param-name optional">[y=0]</code>
320                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
321                        <span class="flag optional" title="This parameter is optional.">optional</span>
322                    
323
324                    
325
326                    <div class="param-description">
327                        <p>Y position.</p>
328
329                    </div>
330
331                    
332                </li>
333            
334            </ul>
335        </div>
336    
337
338    
339
340    
341</div>
342
343    </div>
344
345
346<div id="classdocs" class="tabview">
347    <ul class="api-class-tabs">
348        <li class="api-class-tab index"><a href="#index">Index</a></li>
349
350        
351            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
352        
353        
354            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
355        
356        
357        
358    </ul>
359
360    <div>
361        <div id="index" class="api-class-tabpanel index">
362            <h2 class="off-left">Item Index</h2>
363
364            
365                <div class="index-section methods">
366                    <h3>Methods</h3>
367
368                    <ul class="index-list methods">
369                        
370                            <li class="index-item method">
371                                <a href="#method_clone">clone</a>
372
373                                
374                                
375                            </li>
376                        
377                            <li class="index-item method">
378                                <a href="#method_copy">copy</a>
379
380                                
381                                
382                            </li>
383                        
384                            <li class="index-item method">
385                                <a href="#method_setValues">setValues</a>
386
387                                
388                                
389                            </li>
390                        
391                            <li class="index-item method">
392                                <a href="#method_toString">toString</a>
393
394                                
395                                
396                            </li>
397                        
398                    </ul>
399                </div>
400            
401
402            
403                <div class="index-section properties">
404                    <h3>Properties</h3>
405
406                    <ul class="index-list properties">
407                        
408                            <li class="index-item property">
409                                <a href="#property_x">x</a>
410
411                                
412                                
413                            </li>
414                        
415                            <li class="index-item property">
416                                <a href="#property_y">y</a>
417
418                                
419                                
420                            </li>
421                        
422                    </ul>
423                </div>
424            
425
426            
427
428            
429        </div>
430
431        
432            <div id="methods" class="api-class-tabpanel">
433                <h2 class="off-left">Methods</h2>
434
435                
436                    <div id="method_clone" class="method item">
437    <h3 class="name"><code>clone</code></h3>
438
439    
440        <span class="paren">()</span>
441    
442
443    
444        <span class="returns-inline">
445            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
446        </span>
447    
448
449    
450
451    
452
453    
454
455    
456
457    
458
459    
460
461    <div class="meta">
462        
463            
464                
465                <p>
466                
467                Defined in
468                
469            
470        
471        
472        <a href="../files/easeljs_geom_Point.js.html#l101"><code>clone:101</code></a>
473        
474        </p>
475
476
477        
478
479        
480    </div>
481
482    <div class="description">
483        <p>Returns a clone of the Point instance.</p>
484
485    </div>
486
487    
488
489    
490        <div class="returns">
491            <h4>Returns:</h4>
492
493            <div class="returns-description">
494                
495                    
496                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
497                    
498                    <p>a clone of the Point instance.</p>
499
500                
501            </div>
502        </div>
503    
504
505    
506</div>
507
508                
509                    <div id="method_copy" class="method item">
510    <h3 class="name"><code>copy</code></h3>
511
512    
513        <div class="args">
514            <span class="paren">(</span><ul class="args-list inline commas">
515            
516                <li class="arg">
517                    
518                        <code>point</code>
519                    
520                </li>
521            
522            </ul><span class="paren">)</span>
523        </div>
524    
525
526    
527        <span class="returns-inline">
528            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
529        </span>
530    
531
532    
533
534    
535
536    
537
538    
539
540    
541        <span class="flag chainable">chainable</span>
542    
543
544    
545
546    <div class="meta">
547        
548            
549                
550                <p>
551                
552                Defined in
553                
554            
555        
556        
557        <a href="../files/easeljs_geom_Point.js.html#l88"><code>copy:88</code></a>
558        
559        </p>
560
561
562        
563
564        
565    </div>
566
567    <div class="description">
568        <p>Copies all properties from the specified point to this point.</p>
569
570    </div>
571
572    
573        <div class="params">
574            <h4>Parameters:</h4>
575
576            <ul class="params-list">
577            
578                <li class="param">
579                    
580                        <code class="param-name">point</code>
581                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
582                    
583
584                    
585
586                    <div class="param-description">
587                        <p>The point to copy properties from.</p>
588
589                    </div>
590
591                    
592                </li>
593            
594            </ul>
595        </div>
596    
597
598    
599        <div class="returns">
600            <h4>Returns:</h4>
601
602            <div class="returns-description">
603                
604                    
605                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
606                    
607                    <p>This point. Useful for chaining method calls.</p>
608
609                
610            </div>
611        </div>
612    
613
614    
615</div>
616
617                
618                    <div id="method_setValues" class="method item">
619    <h3 class="name"><code>setValues</code></h3>
620
621    
622        <div class="args">
623            <span class="paren">(</span><ul class="args-list inline commas">
624            
625                <li class="arg">
626                    
627                        <code class="optional">[x=0]</code>
628                    
629                </li>
630            
631                <li class="arg">
632                    
633                        <code class="optional">[y=0]</code>
634                    
635                </li>
636            
637            </ul><span class="paren">)</span>
638        </div>
639    
640
641    
642        <span class="returns-inline">
643            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
644        </span>
645    
646
647    
648
649    
650
651    
652
653    
654
655    
656        <span class="flag chainable">chainable</span>
657    
658
659    
660
661    <div class="meta">
662        
663            
664                
665                <p>
666                
667                Defined in
668                
669            
670        
671        
672        <a href="../files/easeljs_geom_Point.js.html#l74"><code>setValues:74</code></a>
673        
674        </p>
675
676
677        
678
679        
680    </div>
681
682    <div class="description">
683        <p>Sets the specified values on this instance.</p>
684
685    </div>
686
687    
688        <div class="params">
689            <h4>Parameters:</h4>
690
691            <ul class="params-list">
692            
693                <li class="param">
694                    
695                        <code class="param-name optional">[x=0]</code>
696                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
697                        <span class="flag optional" title="This parameter is optional.">optional</span>
698                    
699
700                    
701
702                    <div class="param-description">
703                        <p>X position.</p>
704
705                    </div>
706
707                    
708                </li>
709            
710                <li class="param">
711                    
712                        <code class="param-name optional">[y=0]</code>
713                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
714                        <span class="flag optional" title="This parameter is optional.">optional</span>
715                    
716
717                    
718
719                    <div class="param-description">
720                        <p>Y position.</p>
721
722                    </div>
723
724                    
725                </li>
726            
727            </ul>
728        </div>
729    
730
731    
732        <div class="returns">
733            <h4>Returns:</h4>
734
735            <div class="returns-description">
736                
737                    
738                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
739                    
740                    <p>This instance. Useful for chaining method calls.</p>
741
742                
743            </div>
744        </div>
745    
746
747    
748</div>
749
750                
751                    <div id="method_toString" class="method item">
752    <h3 class="name"><code>toString</code></h3>
753
754    
755        <span class="paren">()</span>
756    
757
758    
759        <span class="returns-inline">
760            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
761        </span>
762    
763
764    
765
766    
767
768    
769
770    
771
772    
773
774    
775
776    <div class="meta">
777        
778            
779                
780                <p>
781                
782                Defined in
783                
784            
785        
786        
787        <a href="../files/easeljs_geom_Point.js.html#l110"><code>toString:110</code></a>
788        
789        </p>
790
791
792        
793
794        
795    </div>
796
797    <div class="description">
798        <p>Returns a string representation of this object.</p>
799
800    </div>
801
802    
803
804    
805        <div class="returns">
806            <h4>Returns:</h4>
807
808            <div class="returns-description">
809                
810                    
811                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
812                    
813                    <p>a string representation of the instance.</p>
814
815                
816            </div>
817        </div>
818    
819
820    
821</div>
822
823                
824            </div>
825        
826
827        
828            <div id="properties" class="api-class-tabpanel">
829                <h2 class="off-left">Properties</h2>
830
831                
832                    <div id="property_x" class="property item">
833    <h3 class="name"><code>x</code></h3>
834    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
835
836    
837
838    
839
840    
841
842    
843
844    
845
846    <div class="meta">
847        
848            
849                
850                <p>
851                
852                Defined in
853                
854            
855        
856        
857        <a href="../files/easeljs_geom_Point.js.html#l59"><code>x:59</code></a>
858        
859        </p>
860
861        
862
863        
864    </div>
865
866    <div class="description">
867        <p>X position.</p>
868
869    </div>
870
871    
872
873    
874
875    
876</div>
877
878                
879                    <div id="property_y" class="property item">
880    <h3 class="name"><code>y</code></h3>
881    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
882
883    
884
885    
886
887    
888
889    
890
891    
892
893    <div class="meta">
894        
895            
896                
897                <p>
898                
899                Defined in
900                
901            
902        
903        
904        <a href="../files/easeljs_geom_Point.js.html#l65"><code>y:65</code></a>
905        
906        </p>
907
908        
909
910        
911    </div>
912
913    <div class="description">
914        <p>Y position.</p>
915
916    </div>
917
918    
919
920    
921
922    
923</div>
924
925                
926            </div>
927        
928
929        
930
931        
932    </div>
933</div>
934
935                    </div>
936                </div>
937            </div>
938        </div>
939    </div>
940</div>
941<script src="../assets/vendor/prettify/prettify-min.js"></script>
942<script>prettyPrint();</script>
943<script src="../assets/js/yui-prettify.js"></script>
944<script src="../assets/../api.js"></script>
945<script src="../assets/js/api-filter.js"></script>
946<script src="../assets/js/api-list.js"></script>
947<script src="../assets/js/api-search.js"></script>
948<script src="../assets/js/apidocs.js"></script>
949</body>
950</html>