2 |
3 |
4 |
5 |
6 | Uses of Package lunar
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | Classes in lunar used by lunar
81 |
82 |
83 | Class
84 | Description
85 |
86 |
87 |
88 |
89 | LFace
90 |
91 |
92 |
93 | LMesh
94 |
95 |
96 |
97 | LVector
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
135 |
136 |
137 |
--------------------------------------------------------------------------------
/reference/allclasses-index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | All Classes
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 | Class Summary
75 |
76 |
77 | Class
78 | Description
79 |
80 |
81 |
82 |
83 | LFace
84 |
85 |
86 |
87 | Lists
88 |
89 |
90 |
91 | LMesh
92 |
93 |
94 |
95 | LVector
96 |
97 |
98 |
99 | Meshes
100 |
101 |
102 |
103 | Render
104 |
105 |
106 |
107 | Vectors
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
141 |
142 |
143 |
--------------------------------------------------------------------------------
/reference/lunar/package-summary.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | lunar
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | Class Summary
78 |
79 |
80 | Class
81 | Description
82 |
83 |
84 |
85 |
86 | LFace
87 |
88 |
89 |
90 | Lists
91 |
92 |
93 |
94 | LMesh
95 |
96 |
97 |
98 | LVector
99 |
100 |
101 |
102 | Meshes
103 |
104 |
105 |
106 | Render
107 |
108 |
109 |
110 | Vectors
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
147 |
148 |
149 |
--------------------------------------------------------------------------------
/reference/index-files/index-16.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | U-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
U
75 |
76 | unitVector(LVector) - Static method in class lunar.Vectors
77 |
78 | Returns the unitized vector
79 |
80 |
81 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
82 |
83 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/reference/index-files/index-10.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | N-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
N
75 |
76 | nullPattern(ArrayList<T>) - Static method in class lunar.Lists
77 |
78 | Tests a list for null items
79 |
80 |
81 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
82 |
83 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/reference/index-files/index-6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | G-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
G
75 |
76 | gradientBackground(PApplet, int, int) - Static method in class lunar.Render
77 |
78 | Draws the background as a gradient
79 |
80 |
81 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
82 |
83 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/reference/index-files/index-11.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | O-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
O
75 |
76 | orbitCamera(PApplet, LVector, LVector) - Static method in class lunar.Render
77 |
78 | Creates a camera that orbits around a target point
79 |
80 |
81 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
82 |
83 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/reference/index-files/index-18.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | W-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 |
82 |
83 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/reference/index-files/index-19.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | X-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
X
75 |
76 | x - Variable in class lunar.LVector
77 |
78 | xAxisVector(float) - Static method in class lunar.Vectors
79 |
80 | Returns a vector parallel to the x-axis
81 |
82 |
83 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
84 |
85 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/reference/index-files/index-20.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Y-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
Y
75 |
76 | y - Variable in class lunar.LVector
77 |
78 | yAxisVector(float) - Static method in class lunar.Vectors
79 |
80 | Returns a vector parallel to the y-axis
81 |
82 |
83 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
84 |
85 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/reference/index-files/index-21.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Z-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
Z
75 |
76 | z - Variable in class lunar.LVector
77 |
78 | zAxisVector(float) - Static method in class lunar.Vectors
79 |
80 | Returns a vector parallel to the z-axis
81 |
82 |
83 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
84 |
85 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/reference/index-files/index-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | F-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
F
75 |
76 | faces - Variable in class lunar.LMesh
77 |
78 | faceVectices(LFace, LMesh) - Static method in class lunar.Meshes
79 |
80 | Returns the vertices that make a face
81 |
82 |
83 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
84 |
85 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/reference/index-files/index-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | B-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
B
75 |
76 | b - Variable in class lunar.LFace
77 |
78 | boxMesh(float, float, float, int, int, int) - Static method in class lunar.Meshes
79 |
80 | Generates a mesh in the shape of a box
81 |
82 |
83 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
84 |
85 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/reference/index-files/index-15.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | T-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
T
75 |
76 | triangleMesh(LVector, LVector, LVector) - Static method in class lunar.Meshes
77 |
78 | Generates a mesh in the form of a single face
79 |
80 | twoPointVector(LVector, LVector) - Static method in class lunar.Vectors
81 |
82 | Returns the vector between two points
83 |
84 |
85 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
86 |
87 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/reference/index-files/index-7.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | I-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
I
75 |
76 | insertedItemsList(ArrayList<T>, ArrayList<T>, int) - Static method in class lunar.Lists
77 |
78 | Inserts a collection of items into a list
79 |
80 | itemIndex(ArrayList<T>, T) - Static method in class lunar.Lists
81 |
82 | Retrieves the index of a certain item in a list
83 |
84 |
85 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
86 |
87 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/reference/script.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
3 | * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4 | *
5 | *
6 | *
7 | *
8 | *
9 | *
10 | *
11 | *
12 | *
13 | *
14 | *
15 | *
16 | *
17 | *
18 | *
19 | *
20 | *
21 | *
22 | *
23 | *
24 | */
25 |
26 | var moduleSearchIndex;
27 | var packageSearchIndex;
28 | var typeSearchIndex;
29 | var memberSearchIndex;
30 | var tagSearchIndex;
31 | function loadScripts(doc, tag) {
32 | createElem(doc, tag, 'script-dir/jszip/dist/jszip.js');
33 | createElem(doc, tag, 'script-dir/jszip-utils/dist/jszip-utils.js');
34 | if (window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0 ||
35 | window.navigator.userAgent.indexOf('Edge/') > 0) {
36 | createElem(doc, tag, 'script-dir/jszip-utils/dist/jszip-utils-ie.js');
37 | }
38 | createElem(doc, tag, 'search.js');
39 |
40 | $.get(pathtoroot + "module-search-index.zip")
41 | .done(function() {
42 | JSZipUtils.getBinaryContent(pathtoroot + "module-search-index.zip", function(e, data) {
43 | JSZip.loadAsync(data).then(function(zip){
44 | zip.file("module-search-index.json").async("text").then(function(content){
45 | moduleSearchIndex = JSON.parse(content);
46 | });
47 | });
48 | });
49 | });
50 | $.get(pathtoroot + "package-search-index.zip")
51 | .done(function() {
52 | JSZipUtils.getBinaryContent(pathtoroot + "package-search-index.zip", function(e, data) {
53 | JSZip.loadAsync(data).then(function(zip){
54 | zip.file("package-search-index.json").async("text").then(function(content){
55 | packageSearchIndex = JSON.parse(content);
56 | });
57 | });
58 | });
59 | });
60 | $.get(pathtoroot + "type-search-index.zip")
61 | .done(function() {
62 | JSZipUtils.getBinaryContent(pathtoroot + "type-search-index.zip", function(e, data) {
63 | JSZip.loadAsync(data).then(function(zip){
64 | zip.file("type-search-index.json").async("text").then(function(content){
65 | typeSearchIndex = JSON.parse(content);
66 | });
67 | });
68 | });
69 | });
70 | $.get(pathtoroot + "member-search-index.zip")
71 | .done(function() {
72 | JSZipUtils.getBinaryContent(pathtoroot + "member-search-index.zip", function(e, data) {
73 | JSZip.loadAsync(data).then(function(zip){
74 | zip.file("member-search-index.json").async("text").then(function(content){
75 | memberSearchIndex = JSON.parse(content);
76 | });
77 | });
78 | });
79 | });
80 | $.get(pathtoroot + "tag-search-index.zip")
81 | .done(function() {
82 | JSZipUtils.getBinaryContent(pathtoroot + "tag-search-index.zip", function(e, data) {
83 | JSZip.loadAsync(data).then(function(zip){
84 | zip.file("tag-search-index.json").async("text").then(function(content){
85 | tagSearchIndex = JSON.parse(content);
86 | });
87 | });
88 | });
89 | });
90 | if (!moduleSearchIndex) {
91 | createElem(doc, tag, 'module-search-index.js');
92 | }
93 | if (!packageSearchIndex) {
94 | createElem(doc, tag, 'package-search-index.js');
95 | }
96 | if (!typeSearchIndex) {
97 | createElem(doc, tag, 'type-search-index.js');
98 | }
99 | if (!memberSearchIndex) {
100 | createElem(doc, tag, 'member-search-index.js');
101 | }
102 | if (!tagSearchIndex) {
103 | createElem(doc, tag, 'tag-search-index.js');
104 | }
105 | $(window).resize(function() {
106 | $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
107 | });
108 | }
109 |
110 | function createElem(doc, tag, path) {
111 | var script = doc.createElement(tag);
112 | var scriptElement = doc.getElementsByTagName(tag)[0];
113 | script.src = pathtoroot + path;
114 | scriptElement.parentNode.insertBefore(script, scriptElement);
115 | }
116 |
117 | function show(type) {
118 | count = 0;
119 | for (var key in data) {
120 | var row = document.getElementById(key);
121 | if ((data[key] & type) !== 0) {
122 | row.style.display = '';
123 | row.className = (count++ % 2) ? rowColor : altColor;
124 | }
125 | else
126 | row.style.display = 'none';
127 | }
128 | updateTabs(type);
129 | }
130 |
131 | function updateTabs(type) {
132 | var firstRow = document.getElementById(Object.keys(data)[0]);
133 | var table = firstRow.closest('table');
134 | for (var value in tabs) {
135 | var tab = document.getElementById(tabs[value][0]);
136 | if (value == type) {
137 | tab.className = activeTableTab;
138 | tab.innerHTML = tabs[value][1];
139 | tab.setAttribute('aria-selected', true);
140 | tab.setAttribute('tabindex',0);
141 | table.setAttribute('aria-labelledby', tabs[value][0]);
142 | }
143 | else {
144 | tab.className = tableTab;
145 | tab.setAttribute('aria-selected', false);
146 | tab.setAttribute('tabindex',-1);
147 | tab.setAttribute('onclick', "show("+ value + ")");
148 | tab.innerHTML = tabs[value][1];
149 | }
150 | }
151 | }
152 |
153 | function switchTab(e) {
154 | if (e.keyCode == 37 || e.keyCode == 38) {
155 | $("[aria-selected=true]").prev().click().focus();
156 | e.preventDefault();
157 | }
158 | if (e.keyCode == 39 || e.keyCode == 40) {
159 | $("[aria-selected=true]").next().click().focus();
160 | e.preventDefault();
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/reference/lunar/class-use/LFace.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Uses of Class lunar.LFace
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | Fields in lunar with type parameters of type LFace
82 |
83 |
84 | Modifier and Type
85 | Field
86 | Description
87 |
88 |
89 |
90 |
91 | java.util.ArrayList<LFace >
92 | LMesh. faces
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 | Methods in lunar with parameters of type LFace
101 |
102 |
103 | Modifier and Type
104 | Method
105 | Description
106 |
107 |
108 |
109 |
110 | static java.util.ArrayList<LVector >
111 | Meshes. faceVectices (LFace face,
112 | LMesh parentMesh)
113 |
114 | Returns the vertices that make a face
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
152 |
153 |
154 |
--------------------------------------------------------------------------------
/reference/index-files/index-1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | A-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
A
75 |
76 | a - Variable in class lunar.LFace
77 |
78 | addedVector(LVector, LVector) - Static method in class lunar.Vectors
79 |
80 | Performs vector-vector addition
81 |
82 | amplitudedVector(LVector, float) - Static method in class lunar.Vectors
83 |
84 | Sets the amplitude of a vector
85 |
86 | angleBetweenVectors(LVector, LVector) - Static method in class lunar.Vectors
87 |
88 | Computes the angle between two vector
89 |
90 |
91 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
92 |
93 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/reference/index-files/index-17.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | V-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
V
75 |
76 | vectorDistance(LVector, LVector) - Static method in class lunar.Vectors
77 |
78 | Returns the distance between two vectors
79 |
80 | vectorLength(LVector) - Static method in class lunar.Vectors
81 |
82 | Computes the amplitude of a vector
83 |
84 | Vectors - Class in lunar
85 |
86 | Vectors() - Constructor for class lunar.Vectors
87 |
88 | vertices - Variable in class lunar.LMesh
89 |
90 |
91 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
92 |
93 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/reference/index-files/index-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | D-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
D
75 |
76 | deconstructVector(LVector) - Static method in class lunar.Vectors
77 |
78 | Deconstructs a vector into its component parts
79 |
80 | dispatchedLists(ArrayList<T>, ArrayList<Boolean>) - Static method in class lunar.Lists
81 |
82 | Dispatches items in a list into two lists
83 |
84 | dividedVector(LVector, float) - Static method in class lunar.Vectors
85 |
86 | Returns a vector-scalar division
87 |
88 | dotProduct(LVector, LVector) - Static method in class lunar.Vectors
89 |
90 | Returns the vector dot product
91 |
92 |
93 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
94 |
95 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/resources/build.properties:
--------------------------------------------------------------------------------
1 | # Create a Library for the Processing open source programming language and
2 | # environment (http://processing.org/)
3 | #
4 | # Customize the build properties to make the ant-build-process work for your
5 | # environment. How? Please read the comments below.
6 | #
7 | # The default properties are set for OS X. Please refer to comments for Windows
8 | # settings.
9 |
10 |
11 | # Where is your Processing sketchbook located?
12 | # If you are not sure, check the sketchbook location in your Processing
13 | # application preferences.
14 | # ${user.home} points the compiler to your home directory.
15 | # For windows the default path to your sketchbook would be
16 | # ${user.home}/My Documents/Processing (make adjustments below)
17 |
18 | #sketchbook.location=${user.home}/My Documents/Processing
19 | sketchbook.location=${user.home}/sketchbook
20 |
21 |
22 | # Where are the jar files located that are required for compiling your Library
23 | # such as e.g. core.jar?
24 | # By default the local classpath location points to folder libs inside Eclipse's
25 | # workspace (by default found in your home directory).
26 | # For Windows, the default path would be
27 | # ${user.home}/Documents/workspace/libs (make adjustments below)
28 | # For OS X,the following path will direct you into Processing's application
29 | # package, in case you put Processing inside your Applications folder.
30 |
31 | classpath.local.location=${user.home}/Documenten/Projects/T002 - Lunar Library Processing/Source Documents/Processing Library/lunar-library-master/lib/
32 | #classpath.local.location=/Applications/Processing.app/Contents/Java/core/library
33 |
34 |
35 | # Add all jar files that are required for compiling your project to the local
36 | # and project classpath. Use a comma as delimiter. These jar files must be
37 | # inside your classpath.local.location folder.
38 |
39 | classpath.local.include=core.jar
40 |
41 |
42 | # Add Processing's libraries folder to the classpath.
43 | # If you don't need to include the libraries folder to your classpath, comment
44 | # out the following line.
45 |
46 | classpath.libraries.location=${sketchbook.location}/libraries
47 |
48 |
49 | # Set the java version that should be used to compile your Library.
50 |
51 | java.target.version=1.8
52 |
53 |
54 | # Set the description of the Ant build.xml file.
55 |
56 | ant.description=Processing Library Ant build file.
57 |
58 |
59 | # Give your Library a name. The name must not contain spaces or special
60 | # characters.
61 |
62 | project.name=lunar
63 |
64 |
65 | # The name as the user will see it. This can contain spaces and special
66 | # characters.
67 |
68 | project.prettyName=Lunar
69 |
70 |
71 | # Use 'normal' or 'fast' as value for project.compile.
72 | # 'fast' will only compile the project into your sketchbook.
73 | # 'normal' will compile the distribution including the javadoc-reference and all
74 | # web-files (the compile process here takes longer).
75 | # All files compiled with project.compile=normal are stored in the distribution
76 | # folder.
77 |
78 | project.compile=normal
79 |
80 |
81 | # Set your name and URL, used for the web page and properties file.
82 |
83 | author.name=Boy d'Hont
84 | author.url=http://www.bdhont.net
85 |
86 |
87 | # Set the web page for your Library.
88 | # This is NOT a direct link to where to download it.
89 |
90 | library.url=http://bdhont.net/lunar
91 |
92 |
93 | # Set the category (or categories) of your Library from the following list:
94 | # "3D" "Animation" "Compilations" "Data"
95 | # "Fabrication" "Geometry" "GUI" "Hardware"
96 | # "I/O" "Language" "Math" "Simulation"
97 | # "Sound" "Utilities" "Typography" "Video & Vision"
98 | #
99 | # If a value other than those listed is used, your Library will listed as
100 | # "Other". Many categories must be comma-separated.
101 |
102 | library.categories="3D"
103 |
104 |
105 | # A short sentence (or fragment) to summarize the Library's function. This will
106 | # be shown from inside the PDE when the Library is being installed. Avoid
107 | # repeating the name of your Library here. Also, avoid saying anything redundant
108 | # like mentioning that it's a Library. This should start with a capitalized
109 | # letter, and end with a period.
110 |
111 | library.sentence=Parametric design library for the minimalist, inspired on existing node-based plug-ins for CAD software. Holds algorithms for easy generation and adaptation of polygon meshes, vectors and list patterns.
112 |
113 |
114 | # Additional information suitable for the Processing website. The value of
115 | # 'sentence' always will be prepended, so you should start by writing the
116 | # second sentence here. If your Library only works on certain operating systems,
117 | # mention it here.
118 |
119 | library.paragraph=
120 |
121 |
122 | # Set the source code repository for your project.
123 | # We recommend Bitbucket (https://bitbucket.org) or GitHub (https://github.com).
124 |
125 | source.host=GitHub
126 | source.url=https://github.com/boydhont/lunar
127 | source.repository=https://github.com/boydhont/lunar.git
128 |
129 |
130 | # The current version of your Library.
131 | # This number must be parsable as an int. It increments once with each release.
132 | # This is used to compare different versions of the same Library, and check if
133 | # an update is available.
134 |
135 | library.version=1
136 |
137 |
138 | # The version as the user will see it.
139 |
140 | library.prettyVersion=1.0.0
141 |
142 |
143 | # The min and max revision of Processing compatible with your Library.
144 | # Note that these fields use the revision and not the version of Processing,
145 | # parsable as an int. For example, the revision number for 2.2.1 is 227.
146 | # You can find the revision numbers in the change log: https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt
147 | # Only use maxRevision (or minRevision), when your Library is known to
148 | # break in a later (or earlier) release. Otherwise, use the default value 0.
149 |
150 | compatible.minRevision=0
151 | compatible.maxRevision=0
152 |
153 |
154 | # The platforms and Processing version that the Library has been tested
155 | # against. This information is only used in the generated webpage.
156 |
157 | tested.platform=linux
158 | tested.processingVersion=3.2.3
159 |
160 |
161 | # Additional information for the generated webpage.
162 |
163 | library.copyright=(c) 2020
164 | library.dependencies=?
165 | library.keywords=?
166 |
167 |
168 | # Include javadoc references into your project's javadocs.
169 |
170 | #javadoc.java.href=http://docs.oracle.com/javase/7/docs/api/
171 | javadoc.java.href=http://docs.oracle.com/javase/8/docs/api/
172 | javadoc.processing.href=http://processing.github.io/processing-javadocs/core/
173 |
--------------------------------------------------------------------------------
/reference/index-files/index-12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | P-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
P
75 |
76 | pickedAndChosenList(ArrayList<T>, ArrayList<T>, ArrayList<Boolean>) - Static method in class lunar.Lists
77 |
78 | Pick and choose from a set of input data
79 |
80 | planeMesh(float, float, int, int) - Static method in class lunar.Meshes
81 |
82 | Generates a mesh in the shape of a plane
83 |
84 | polarToCartesianVector(LVector) - Static method in class lunar.Vectors
85 |
86 | Converts a polar vector to a Cartesian vector
87 |
88 | PVector(LVector) - Static method in class lunar.Vectors
89 |
90 | Converts a vector into a PVector
91 |
92 |
93 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
94 |
95 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/reference/index-files/index-14.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | S-Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
30 |
60 |
61 |
65 |
66 |
67 |
68 |
71 | A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
72 |
73 |
74 |
S
75 |
76 | shiftedList(ArrayList<T>, int) - Static method in class lunar.Lists
77 |
78 | Offsets all items in a list
79 |
80 | siftedList(ArrayList<T>, ArrayList<Boolean>) - Static method in class lunar.Lists
81 |
82 | Sifts elements using a repeating index pattern
83 |
84 | splitLists(ArrayList<T>, int) - Static method in class lunar.Lists
85 |
86 | Splits a list into separate parts
87 |
88 | staticCamera(PApplet, LVector, LVector) - Static method in class lunar.Render
89 |
90 | Creates a static camera
91 |
92 | subList(ArrayList<T>, int, int) - Static method in class lunar.Lists
93 |
94 | Extracts a sublist from a list
95 |
96 |
97 |
A B C D F G I L M N O P R S T U V W X Y Z All Classes All Packages
98 |
99 |
125 |
126 |
127 |
--------------------------------------------------------------------------------
/src/lunar/Render.java:
--------------------------------------------------------------------------------
1 | package lunar;
2 |
3 | public class Render {
4 |
5 | /**
6 | * Draws a mesh
7 | * @param applet The Processing applet, write "this"
8 | * @param mesh The input mesh
9 | */
10 |
11 | public static final void mesh(processing.core.PApplet applet, LMesh mesh)
12 | {
13 | processing.core.PGraphics graphicsBuffer = applet.g;
14 |
15 | graphicsBuffer.beginShape(processing.core.PConstants.TRIANGLES);
16 |
17 | for(LFace f : mesh.faces)
18 | {
19 | LVector a = mesh.vertices.get(f.a);
20 | LVector b = mesh.vertices.get(f.b);
21 | LVector c = mesh.vertices.get(f.c);
22 |
23 | LVector n = Vectors.unitVector(Vectors.crossProduct(Vectors.twoPointVector(a,c),Vectors.twoPointVector(a,b)));
24 |
25 |
26 | graphicsBuffer.normal(n.x, n.y, n.z);
27 | graphicsBuffer.vertex(a.x, a.y, a.z);
28 | graphicsBuffer.vertex(b.x, b.y, b.z);
29 | graphicsBuffer.vertex(c.x, c.y, c.z);
30 | }
31 |
32 | graphicsBuffer.endShape();
33 | }
34 |
35 | /**
36 | * Draws the normals of a mesh
37 | * @param applet The Processing applet, write "this"
38 | * @param mesh The input mesh
39 | * @param normalLength The length of the normals
40 | */
41 |
42 | public static final void meshNormals(processing.core.PApplet applet, LMesh mesh, float normalLength)
43 | {
44 | processing.core.PGraphics graphicsBuffer = applet.g;
45 |
46 | graphicsBuffer.beginShape(processing.core.PConstants.LINES);
47 |
48 | for (LFace f : mesh.faces)
49 | {
50 | LVector a = mesh.vertices.get(f.a);
51 | LVector b = mesh.vertices.get(f.b);
52 | LVector c = mesh.vertices.get(f.c);
53 |
54 | LVector m = Vectors.dividedVector(Vectors.addedVector(Vectors.addedVector(a, b), c), 3);
55 | LVector n = Vectors.unitVector(Vectors.crossProduct(Vectors.twoPointVector(a, c), Vectors.twoPointVector(a, b)));
56 | LVector v = Vectors.addedVector(m, Vectors.amplitudedVector(n, normalLength));
57 |
58 | graphicsBuffer.line(m.x, m.y, m.z, v.x, v.y, v.z);
59 | }
60 |
61 | graphicsBuffer.endShape();
62 | }
63 |
64 | /**
65 | * Draws the vertices of a mesh
66 | * @param applet The Processing applet, write "this"
67 | * @param mesh The input mesh
68 | */
69 |
70 | public static final void meshVertices(processing.core.PApplet applet, LMesh mesh)
71 | {
72 | processing.core.PGraphics graphicsBuffer = applet.g;
73 |
74 | graphicsBuffer.beginShape(processing.core.PConstants.POINTS);
75 |
76 | for (LVector v : mesh.vertices) graphicsBuffer.point(v.x, v.y, v.z);
77 |
78 | graphicsBuffer.endShape();
79 | }
80 |
81 | /**
82 | * Draws a mesh as a rainbow mesh
83 | * @param applet The Processing applet, write "this"
84 | * @param mesh The input mesh
85 | */
86 |
87 | public static final void rainbowMesh(processing.core.PApplet applet, LMesh mesh)
88 | {
89 | processing.core.PGraphics graphicsBuffer = applet.g;
90 |
91 | graphicsBuffer.beginShape(processing.core.PConstants.TRIANGLES);
92 |
93 | for (LFace f : mesh.faces)
94 | {
95 | LVector a = mesh.vertices.get(f.a);
96 | LVector b = mesh.vertices.get(f.b);
97 | LVector c = mesh.vertices.get(f.c);
98 |
99 | LVector n = Vectors.unitVector(Vectors.crossProduct(Vectors.twoPointVector(a, c), Vectors.twoPointVector(a, b)));
100 |
101 | LVector colour = new LVector(
102 | processing.core.PApplet.map(n.x, -0.87f, 0.87f, 0, 255),
103 | processing.core.PApplet.map(n.y, -0.87f, 0.87f, 0, 255),
104 | processing.core.PApplet.map(n.z, -0.87f, 0.87f, 0, 255)
105 | );
106 |
107 | graphicsBuffer.fill(colour.x, colour.y, colour.z);
108 |
109 | graphicsBuffer.normal(n.x, n.y, n.z);
110 | graphicsBuffer.vertex(a.x, a.y, a.z);
111 | graphicsBuffer.vertex(b.x, b.y, b.z);
112 | graphicsBuffer.vertex(c.x, c.y, c.z);
113 | }
114 |
115 | graphicsBuffer.endShape();
116 | }
117 |
118 | /**
119 | * Draws the background as a gradient
120 | * @param applet The Processing applet, write "this"
121 | * @param colourA The first colour
122 | * @param colourB The second colour
123 | */
124 |
125 | public static final void gradientBackground(processing.core.PApplet applet, int colourA, int colourB)
126 | {
127 | processing.core.PGraphics graphicsBuffer = applet.g;
128 |
129 | graphicsBuffer.hint(processing.core.PConstants.DISABLE_DEPTH_TEST);
130 | graphicsBuffer.pushMatrix();
131 | graphicsBuffer.resetMatrix();
132 | processing.opengl.PGraphicsOpenGL pgl = (processing.opengl.PGraphicsOpenGL)graphicsBuffer;
133 | boolean pushedLights = pgl.lights;
134 | pgl.lights = false;
135 | pgl.pushProjection();
136 | graphicsBuffer.ortho(0, graphicsBuffer.width, graphicsBuffer.height, 0, -Float.MAX_VALUE, +Float.MAX_VALUE);
137 |
138 | graphicsBuffer.noFill();
139 | graphicsBuffer.strokeWeight(1);
140 |
141 | for (int i = 0; i <= applet.height; i++)
142 | {
143 | float t = processing.core.PApplet.map(i, 0, applet.height, 0, 1);
144 | int colourC = applet.lerpColor(colourA, colourB, t);
145 | graphicsBuffer.stroke(colourC);
146 | graphicsBuffer.line(0, -i, applet.width, -i);
147 | }
148 |
149 | pgl.popProjection();
150 | pgl.lights = pushedLights;
151 | graphicsBuffer.popMatrix();
152 | graphicsBuffer.hint(processing.core.PConstants.ENABLE_DEPTH_TEST);
153 | }
154 |
155 | /**
156 | * Creates a static camera
157 | * @param applet The Processing applet, write "this"
158 | * @param target The position the camera is looking towards to
159 | * @param position The position of the camera
160 | */
161 |
162 | public static final void staticCamera(processing.core.PApplet applet, LVector target, LVector position)
163 | {
164 | applet.camera(position.x, position.y, position.z, target.x, target.y, target.z, 0, 0, -1);
165 | }
166 |
167 | /**
168 | * Creates a camera that orbits around a target point
169 | * @param applet The Processing applet, write "this"
170 | * @param target The position the camera is looking towards to
171 | * @param polarPosition The position of the camera as a three-dimensional polar coordinate
172 | */
173 |
174 | public static void orbitCamera(processing.core.PApplet applet, LVector target, LVector polarPosition)
175 | {
176 | LVector position = new LVector
177 | (
178 | (float)(java.lang.Math.cos(polarPosition.y)*polarPosition.x),
179 | (float)(java.lang.Math.sin(polarPosition.y)*polarPosition.x),
180 | (float)(java.lang.Math.sin(polarPosition.z)*polarPosition.x)
181 | );
182 |
183 | position = Vectors.addedVector(position, target);
184 |
185 | applet.camera(position.x, position.y, position.z, target.x, target.y, target.z, 0, 0, -1);
186 | }
187 |
188 | /**
189 | * Creates a camera that around a target points, dependent on the mouse position
190 | * @param applet The Processing applet, write "this"
191 | * @param target The position the camera is looking towards to
192 | * @param cameraDistance The distance of the camera to the target
193 | */
194 |
195 | public static void mouseCamera(processing.core.PApplet applet, LVector target, float cameraDistance)
196 | {
197 | LVector mousePosition = new LVector
198 | (
199 | cameraDistance,
200 | processing.core.PApplet.map(applet.mouseX, 0, applet.width, (float)java.lang.Math.PI, (float)-java.lang.Math.PI),
201 | processing.core.PApplet.map(applet.mouseY, 0, applet.height, (float)java.lang.Math.PI/2, (float)-java.lang.Math.PI/2)
202 | );
203 |
204 | orbitCamera(applet, target, mousePosition);
205 | }
206 |
207 | }
208 |
--------------------------------------------------------------------------------