aboutsummaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/classmingfx_1_1_point2.html
blob: 1d19c3d7c21fb7a0fe9b0092643bea7293e2d19c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<title>MinGfx Toolkit: mingfx::Point2 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">MinGfx Toolkit
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacemingfx.html">mingfx</a></li><li class="navelem"><a class="el" href="classmingfx_1_1_point2.html">Point2</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classmingfx_1_1_point2-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">mingfx::Point2 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A 2D Point with floating point coordinates, used for storing 2D texture coordinates, screen-space graphics, and mouse input. </p>

<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00028">28</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>
</div>
<p><code>#include &lt;<a class="el" href="point2_8h_source.html">point2.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2e5869d810b52be4ba43c8a4f4e117a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">Point2</a> ()</td></tr>
<tr class="memdesc:a2e5869d810b52be4ba43c8a4f4e117a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default point at the origin.  <a href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">More...</a><br /></td></tr>
<tr class="separator:a2e5869d810b52be4ba43c8a4f4e117a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a716fcff21456f29561ec27118a646483"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">Point2</a> (float <a class="el" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a>, float <a class="el" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a>)</td></tr>
<tr class="memdesc:a716fcff21456f29561ec27118a646483"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a point given (x,y,1), where the 1 comes from the use of homogeneous coordinates in computer graphics.  <a href="classmingfx_1_1_point2.html#a716fcff21456f29561ec27118a646483">More...</a><br /></td></tr>
<tr class="separator:a716fcff21456f29561ec27118a646483"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ba487a2038ebc78b461b66f1987053f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">Point2</a> (float *p)</td></tr>
<tr class="memdesc:a4ba487a2038ebc78b461b66f1987053f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a point given a pointer to x,y data.  <a href="classmingfx_1_1_point2.html#a4ba487a2038ebc78b461b66f1987053f">More...</a><br /></td></tr>
<tr class="separator:a4ba487a2038ebc78b461b66f1987053f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97464af92444984e275dca38a3f4eef0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">Point2</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p)</td></tr>
<tr class="memdesc:a97464af92444984e275dca38a3f4eef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor for point.  <a href="classmingfx_1_1_point2.html#a97464af92444984e275dca38a3f4eef0">More...</a><br /></td></tr>
<tr class="separator:a97464af92444984e275dca38a3f4eef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">~Point2</a> ()</td></tr>
<tr class="memdesc:a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Point destructor.  <a href="classmingfx_1_1_point2.html#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">More...</a><br /></td></tr>
<tr class="separator:a7e5b2dcd7e079bdd00354e7ccf9c5c2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8729260293b993bbf3cb31c0a33edfa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">operator==</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p) const</td></tr>
<tr class="memdesc:ae8729260293b993bbf3cb31c0a33edfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for "equality", taking floating point imprecision into account.  <a href="classmingfx_1_1_point2.html#ae8729260293b993bbf3cb31c0a33edfa">More...</a><br /></td></tr>
<tr class="separator:ae8729260293b993bbf3cb31c0a33edfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b99fcf93a0c6d2b247290f5564f8a84"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">operator!=</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p) const</td></tr>
<tr class="memdesc:a5b99fcf93a0c6d2b247290f5564f8a84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for "inequality", taking floating point imprecision into account.  <a href="classmingfx_1_1_point2.html#a5b99fcf93a0c6d2b247290f5564f8a84">More...</a><br /></td></tr>
<tr class="separator:a5b99fcf93a0c6d2b247290f5564f8a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc68153cce7dc528e95cf5ad81c63902"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">operator=</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;p)</td></tr>
<tr class="memdesc:afc68153cce7dc528e95cf5ad81c63902"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="classmingfx_1_1_point2.html#afc68153cce7dc528e95cf5ad81c63902">More...</a><br /></td></tr>
<tr class="separator:afc68153cce7dc528e95cf5ad81c63902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4c0cc334dfbfe8e8068156e6da16542"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">operator[]</a> (const int i) const</td></tr>
<tr class="memdesc:af4c0cc334dfbfe8e8068156e6da16542"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the ith coordinate of the point.  <a href="classmingfx_1_1_point2.html#af4c0cc334dfbfe8e8068156e6da16542">More...</a><br /></td></tr>
<tr class="separator:af4c0cc334dfbfe8e8068156e6da16542"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f09df619fd226e6dc3ccff452abab3"><td class="memItemLeft" align="right" valign="top">float &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">operator[]</a> (const int i)</td></tr>
<tr class="memdesc:a50f09df619fd226e6dc3ccff452abab3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a reference to the ith coordinate of the point. Use this accessor if you wish to set the coordinate rather than just request its value. Example:  <a href="classmingfx_1_1_point2.html#a50f09df619fd226e6dc3ccff452abab3">More...</a><br /></td></tr>
<tr class="separator:a50f09df619fd226e6dc3ccff452abab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92447f64ca82f67e855da0c42db12ffa"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">x</a> () const</td></tr>
<tr class="memdesc:a92447f64ca82f67e855da0c42db12ffa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the x coordinate. Can also use my_point[0]. Use the my_point[0] = 1.0; form if you need to set the value.  <a href="classmingfx_1_1_point2.html#a92447f64ca82f67e855da0c42db12ffa">More...</a><br /></td></tr>
<tr class="separator:a92447f64ca82f67e855da0c42db12ffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f97a7a75276a147ac06fc4dec810ec8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">y</a> () const</td></tr>
<tr class="memdesc:a4f97a7a75276a147ac06fc4dec810ec8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the y coordinate. Can also use my_point[1]. Use the my_point[1] = 1.0; form if you need to set the value.  <a href="classmingfx_1_1_point2.html#a4f97a7a75276a147ac06fc4dec810ec8">More...</a><br /></td></tr>
<tr class="separator:a4f97a7a75276a147ac06fc4dec810ec8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab00e35eccdc4b7deae8172f5954a86e8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">w</a> () const</td></tr>
<tr class="memdesc:ab00e35eccdc4b7deae8172f5954a86e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">In homogeneous coordinates, the w coordinate for all points is 1.0.  <a href="classmingfx_1_1_point2.html#ab00e35eccdc4b7deae8172f5954a86e8">More...</a><br /></td></tr>
<tr class="separator:ab00e35eccdc4b7deae8172f5954a86e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a027b2412f1c36242ccb06cf37c7e29bc"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">value_ptr</a> () const</td></tr>
<tr class="memdesc:a027b2412f1c36242ccb06cf37c7e29bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a const pointer to the raw data array.  <a href="classmingfx_1_1_point2.html#a027b2412f1c36242ccb06cf37c7e29bc">More...</a><br /></td></tr>
<tr class="separator:a027b2412f1c36242ccb06cf37c7e29bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a900567ad5e3c0e6de217b52167c49fd6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmingfx_1_1_point2.html">Point2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">Lerp</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;b, float alpha) const</td></tr>
<tr class="memdesc:a900567ad5e3c0e6de217b52167c49fd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear interpolation between this point and another. Alpha=0.0 returns this point, and alpha=1.0 returns the other point, other values blend between the two.  <a href="classmingfx_1_1_point2.html#a900567ad5e3c0e6de217b52167c49fd6">More...</a><br /></td></tr>
<tr class="separator:a900567ad5e3c0e6de217b52167c49fd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a24d7a5121fceba01b46f3ba0f6525630"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">Origin</a> ()</td></tr>
<tr class="memdesc:a24d7a5121fceba01b46f3ba0f6525630"><td class="mdescLeft">&#160;</td><td class="mdescRight">(0,0) - a shortcut for a special point that is frequently needed  <a href="classmingfx_1_1_point2.html#a24d7a5121fceba01b46f3ba0f6525630">More...</a><br /></td></tr>
<tr class="separator:a24d7a5121fceba01b46f3ba0f6525630"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60a2b348deab631b51caca3eb715461f"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">Zero</a> ()</td></tr>
<tr class="memdesc:a60a2b348deab631b51caca3eb715461f"><td class="mdescLeft">&#160;</td><td class="mdescRight">(0,0) - a shortcut for a special point that is frequently needed  <a href="classmingfx_1_1_point2.html#a60a2b348deab631b51caca3eb715461f">More...</a><br /></td></tr>
<tr class="separator:a60a2b348deab631b51caca3eb715461f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38149d8797bf7406fc34cab0ea5a3ac8"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">One</a> ()</td></tr>
<tr class="memdesc:a38149d8797bf7406fc34cab0ea5a3ac8"><td class="mdescLeft">&#160;</td><td class="mdescRight">(1,1) - a shortcut for a special point that is frequently needed  <a href="classmingfx_1_1_point2.html#a38149d8797bf7406fc34cab0ea5a3ac8">More...</a><br /></td></tr>
<tr class="separator:a38149d8797bf7406fc34cab0ea5a3ac8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a680648ae01c549c48f7a3d5d75d8791e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">Lerp</a> (const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;a, const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;b, float alpha)</td></tr>
<tr class="memdesc:a680648ae01c549c48f7a3d5d75d8791e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear interpolation between two points. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two.  <a href="classmingfx_1_1_point2.html#a680648ae01c549c48f7a3d5d75d8791e">More...</a><br /></td></tr>
<tr class="separator:a680648ae01c549c48f7a3d5d75d8791e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2e5869d810b52be4ba43c8a4f4e117a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e5869d810b52be4ba43c8a4f4e117a1">&#9670;&nbsp;</a></span>Point2() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mingfx::Point2::Point2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default point at the origin. </p>

</div>
</div>
<a id="a716fcff21456f29561ec27118a646483"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a716fcff21456f29561ec27118a646483">&#9670;&nbsp;</a></span>Point2() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mingfx::Point2::Point2 </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a point given (x,y,1), where the 1 comes from the use of homogeneous coordinates in computer graphics. </p>

</div>
</div>
<a id="a4ba487a2038ebc78b461b66f1987053f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ba487a2038ebc78b461b66f1987053f">&#9670;&nbsp;</a></span>Point2() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mingfx::Point2::Point2 </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a point given a pointer to x,y data. </p>

</div>
</div>
<a id="a97464af92444984e275dca38a3f4eef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97464af92444984e275dca38a3f4eef0">&#9670;&nbsp;</a></span>Point2() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mingfx::Point2::Point2 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy constructor for point. </p>

</div>
</div>
<a id="a7e5b2dcd7e079bdd00354e7ccf9c5c2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e5b2dcd7e079bdd00354e7ccf9c5c2a">&#9670;&nbsp;</a></span>~Point2()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual mingfx::Point2::~Point2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Point destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a680648ae01c549c48f7a3d5d75d8791e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a680648ae01c549c48f7a3d5d75d8791e">&#9670;&nbsp;</a></span>Lerp() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classmingfx_1_1_point2.html">Point2</a> mingfx::Point2::Lerp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Linear interpolation between two points. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b', other values blend between the two. </p>

</div>
</div>
<a id="a900567ad5e3c0e6de217b52167c49fd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a900567ad5e3c0e6de217b52167c49fd6">&#9670;&nbsp;</a></span>Lerp() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmingfx_1_1_point2.html">Point2</a> mingfx::Point2::Lerp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Linear interpolation between this point and another. Alpha=0.0 returns this point, and alpha=1.0 returns the other point, other values blend between the two. </p>

</div>
</div>
<a id="a38149d8797bf7406fc34cab0ea5a3ac8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38149d8797bf7406fc34cab0ea5a3ac8">&#9670;&nbsp;</a></span>One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(1,1) - a shortcut for a special point that is frequently needed </p>

</div>
</div>
<a id="a5b99fcf93a0c6d2b247290f5564f8a84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b99fcf93a0c6d2b247290f5564f8a84">&#9670;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool mingfx::Point2::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for "inequality", taking floating point imprecision into account. </p>

</div>
</div>
<a id="afc68153cce7dc528e95cf5ad81c63902"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc68153cce7dc528e95cf5ad81c63902">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assignment operator. </p>

</div>
</div>
<a id="ae8729260293b993bbf3cb31c0a33edfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8729260293b993bbf3cb31c0a33edfa">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool mingfx::Point2::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmingfx_1_1_point2.html">Point2</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for "equality", taking floating point imprecision into account. </p>

</div>
</div>
<a id="a50f09df619fd226e6dc3ccff452abab3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50f09df619fd226e6dc3ccff452abab3">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float&amp; mingfx::Point2::operator[] </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a reference to the ith coordinate of the point. Use this accessor if you wish to set the coordinate rather than just request its value. Example: </p>
<div class="fragment"><div class="line"><a class="code" href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">Point2</a> a;</div>
<div class="line">a[0] = 5.0; <span class="comment">// set the x-coordinate of the point</span></div>
<div class="ttc" id="aclassmingfx_1_1_point2_html_a2e5869d810b52be4ba43c8a4f4e117a1"><div class="ttname"><a href="classmingfx_1_1_point2.html#a2e5869d810b52be4ba43c8a4f4e117a1">mingfx::Point2::Point2</a></div><div class="ttdeci">Point2()</div><div class="ttdoc">Default point at the origin.</div></div>
</div><!-- fragment --> 
</div>
</div>
<a id="af4c0cc334dfbfe8e8068156e6da16542"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4c0cc334dfbfe8e8068156e6da16542">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float mingfx::Point2::operator[] </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read only access to the ith coordinate of the point. </p>

</div>
</div>
<a id="a24d7a5121fceba01b46f3ba0f6525630"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24d7a5121fceba01b46f3ba0f6525630">&#9670;&nbsp;</a></span>Origin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::Origin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(0,0) - a shortcut for a special point that is frequently needed </p>

</div>
</div>
<a id="a027b2412f1c36242ccb06cf37c7e29bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a027b2412f1c36242ccb06cf37c7e29bc">&#9670;&nbsp;</a></span>value_ptr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const float* mingfx::Point2::value_ptr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a const pointer to the raw data array. </p>

</div>
</div>
<a id="ab00e35eccdc4b7deae8172f5954a86e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab00e35eccdc4b7deae8172f5954a86e8">&#9670;&nbsp;</a></span>w()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float mingfx::Point2::w </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>In homogeneous coordinates, the w coordinate for all points is 1.0. </p>

<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00076">76</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a id="a92447f64ca82f67e855da0c42db12ffa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92447f64ca82f67e855da0c42db12ffa">&#9670;&nbsp;</a></span>x()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float mingfx::Point2::x </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read only access to the x coordinate. Can also use my_point[0]. Use the my_point[0] = 1.0; form if you need to set the value. </p>

<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00069">69</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a id="a4f97a7a75276a147ac06fc4dec810ec8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f97a7a75276a147ac06fc4dec810ec8">&#9670;&nbsp;</a></span>y()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float mingfx::Point2::y </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read only access to the y coordinate. Can also use my_point[1]. Use the my_point[1] = 1.0; form if you need to set the value. </p>

<p class="definition">Definition at line <a class="el" href="point2_8h_source.html#l00073">73</a> of file <a class="el" href="point2_8h_source.html">point2.h</a>.</p>

</div>
</div>
<a id="a60a2b348deab631b51caca3eb715461f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60a2b348deab631b51caca3eb715461f">&#9670;&nbsp;</a></span>Zero()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classmingfx_1_1_point2.html">Point2</a>&amp; mingfx::Point2::Zero </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(0,0) - a shortcut for a special point that is frequently needed </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="point2_8h_source.html">point2.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.9.1-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.9.1
</small></address>
</body>
</html>