ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
|
Last change
on this file since ae3db00 was 1188195, checked in by Dmitry Kobets <dkobets@…>, 6 years ago |
|
Finished floating point vec2
|
-
Property mode
set to
100644
|
|
File size:
318 bytes
|
| Rev | Line | |
|---|
| [1188195] | 1 | #include "../../libcfa/src/vec/vec2.hfa"
|
|---|
| 2 | #include <fstream.hfa>
|
|---|
| 3 | #include <limits.hfa>
|
|---|
| 4 |
|
|---|
| 5 | int main(void) {
|
|---|
| 6 | vec2(double) v1 = {(double)MAX,(double)MIN};
|
|---|
| 7 | sout | "ctor(x,y):" | v1;
|
|---|
| 8 |
|
|---|
| 9 | vec2(double) v2 = {3.4144423, -1.2342315};
|
|---|
| 10 | vec2(double) v3 = {100.23125123, 14.23};
|
|---|
| 11 | sout | "dot(v2,v3):" | dot(v2, v3);
|
|---|
| 12 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.