picrate 1.3.0-java → 2.0.0.pre-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.mvn/extensions.xml +1 -1
- data/.mvn/wrapper/maven-wrapper.properties +2 -2
- data/CHANGELOG.md +2 -1
- data/Gemfile +3 -1
- data/README.md +4 -2
- data/Rakefile +8 -4
- data/bin/picrate +3 -1
- data/docs/_posts/2019-11-11-getting_started_buster.md +1 -1
- data/lib/picrate.rb +1 -1
- data/lib/picrate/app.rb +10 -3
- data/lib/picrate/creators/parameters.rb +8 -8
- data/lib/picrate/creators/sketch_factory.rb +5 -3
- data/lib/picrate/helper_methods.rb +21 -21
- data/lib/picrate/helpers/numeric.rb +2 -0
- data/lib/picrate/library.rb +5 -1
- data/lib/picrate/library_loader.rb +2 -0
- data/lib/picrate/native_folder.rb +6 -4
- data/lib/picrate/native_loader.rb +3 -0
- data/lib/picrate/runner.rb +1 -0
- data/lib/picrate/version.rb +1 -1
- data/library/boids/boids.rb +17 -8
- data/library/chooser/chooser.rb +10 -9
- data/library/color_group/color_group.rb +2 -0
- data/library/control_panel/control_panel.rb +7 -4
- data/library/dxf/dxf.rb +2 -0
- data/library/library_proxy/library_proxy.rb +2 -0
- data/library/net/net.rb +2 -0
- data/library/slider/slider.rb +24 -23
- data/library/vector_utils/vector_utils.rb +4 -0
- data/library/video_event/video_event.rb +2 -0
- data/picrate.gemspec +14 -12
- data/pom.rb +15 -15
- data/pom.xml +5 -5
- data/src/main/java/monkstone/ColorUtil.java +1 -1
- data/src/main/java/monkstone/MathToolModule.java +1 -1
- data/src/main/java/monkstone/PicrateLibrary.java +8 -8
- data/src/main/java/monkstone/fastmath/Deglut.java +16 -16
- data/src/main/java/monkstone/filechooser/Chooser.java +1 -1
- data/src/main/java/monkstone/noise/SimplexNoise.java +3 -3
- data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +1 -1
- data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +12 -12
- data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SliderBar.java +1 -1
- data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
- data/src/main/java/monkstone/slider/WheelHandler.java +1 -1
- data/src/main/java/monkstone/vecmath/package-info.java +1 -1
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +1 -1
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -1
- data/src/main/java/monkstone/videoevent/CaptureEvent.java +1 -1
- data/src/main/java/monkstone/videoevent/MovieEvent.java +1 -1
- data/src/main/java/monkstone/videoevent/package-info.java +1 -1
- data/src/main/java/processing/awt/PGraphicsJava2D.java +11 -13
- data/src/main/java/processing/awt/PSurfaceAWT.java +0 -20
- data/src/main/java/processing/core/PApplet.java +1949 -2247
- data/src/main/java/processing/core/PConstants.java +180 -180
- data/src/main/java/processing/core/PFont.java +2 -2
- data/src/main/java/processing/core/PGraphics.java +90 -90
- data/src/main/java/processing/core/PImage.java +65 -65
- data/src/main/java/processing/core/PMatrix.java +39 -39
- data/src/main/java/processing/core/PSurface.java +37 -37
- data/src/main/java/processing/core/PVector.java +2 -2
- data/src/main/java/processing/data/FloatDict.java +251 -284
- data/src/main/java/processing/data/TableRow.java +32 -32
- data/src/main/java/processing/dxf/RawDXF.java +3 -3
- data/src/main/java/processing/net/Client.java +1 -1
- data/src/main/java/processing/opengl/PGL.java +3884 -3950
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +38 -21
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +42 -61
- data/test/color_group_test.rb +4 -4
- data/test/deglut_spec_test.rb +2 -0
- data/test/helper_methods_test.rb +41 -13
- data/test/math_tool_test.rb +46 -37
- data/test/respond_to_test.rb +5 -3
- data/test/sketches/key_event.rb +2 -2
- data/test/sketches/library/my_library/my_library.rb +3 -0
- data/test/test_helper.rb +2 -0
- data/test/vecmath_spec_test.rb +30 -19
- data/vendors/Rakefile +2 -2
- metadata +29 -17
@@ -41,11 +41,11 @@ import javax.imageio.metadata.*;
|
|
41
41
|
* <b>width</b> and <b>height</b> of the image, as well as an array called
|
42
42
|
* <b>pixels[]</b> that contains the values for every pixel in the image. The
|
43
43
|
* methods described below allow easy access to the image's pixels and alpha
|
44
|
-
* channel and simplify the process of compositing
|
45
|
-
*
|
44
|
+
* channel and simplify the process of compositing.
|
45
|
+
* using the <b>pixels[]</b> array, be sure to use the
|
46
46
|
* <b>loadPixels()</b> method on the image to make sure that the pixel data is
|
47
|
-
* properly loaded
|
48
|
-
*
|
47
|
+
* properly loaded.
|
48
|
+
* create a new image, use the <b>createImage()</b> function. Do not use
|
49
49
|
* the syntax <b>new PImage()</b>.
|
50
50
|
*
|
51
51
|
* ( end auto-generated )
|
@@ -75,8 +75,8 @@ public class PImage implements PConstants, Cloneable {
|
|
75
75
|
* values and if the window is 200x300 pixels, there will be 60000 values. The
|
76
76
|
* <b>index</b> value defines the position of a value within the array. For
|
77
77
|
* example, the statement <b>color b = pixels[230]</b> will set the variable
|
78
|
-
* <b>b</b> to be equal to the value at that location in the array
|
79
|
-
*
|
78
|
+
* <b>b</b> to be equal to the value at that location in the array.
|
79
|
+
*
|
80
80
|
* Before accessing this array, the data must loaded with the
|
81
81
|
* <b>loadPixels()</b> function. After the array data has been modified, the
|
82
82
|
* <b>updatePixels()</b> function must be run to update the changes. Without
|
@@ -478,7 +478,7 @@ public class PImage implements PConstants, Cloneable {
|
|
478
478
|
* Loads the pixel data for the image into its <b>pixels[]</b> array. This
|
479
479
|
* function must always be called before reading from or writing to
|
480
480
|
* <b>pixels[]</b>.
|
481
|
-
*
|
481
|
+
* renderers may or may not seem to require <b>loadPixels()</b>
|
482
482
|
* or <b>updatePixels()</b>. However, the rule is that any time you want to
|
483
483
|
* manipulate the <b>pixels[]</b> array, you must first call
|
484
484
|
* <b>loadPixels()</b>, and after changes have been made, call
|
@@ -518,7 +518,7 @@ public class PImage implements PConstants, Cloneable {
|
|
518
518
|
* Updates the image with the data in its <b>pixels[]</b> array. Use in
|
519
519
|
* conjunction with <b>loadPixels()</b>. If you're only reading pixels from
|
520
520
|
* the array, there's no need to call <b>updatePixels()</b>.
|
521
|
-
*
|
521
|
+
* renderers may or may not seem to require <b>loadPixels()</b>
|
522
522
|
* or <b>updatePixels()</b>. However, the rule is that any time you want to
|
523
523
|
* manipulate the <b>pixels[]</b> array, you must first call
|
524
524
|
* <b>loadPixels()</b>, and after changes have been made, call
|
@@ -606,8 +606,8 @@ public class PImage implements PConstants, Cloneable {
|
|
606
606
|
* Resize the image to a new width and height. To make the image scale
|
607
607
|
* proportionally, use 0 as the value for the <b>wide</b> or <b>high</b>
|
608
608
|
* parameter. For instance, to make the width of an image 150 pixels, and
|
609
|
-
* change the height using the same proportion, use resize(150, 0)
|
610
|
-
*
|
609
|
+
* change the height using the same proportion, use resize(150, 0).
|
610
|
+
*
|
611
611
|
* Even though a PGraphics is technically a PImage, it is not possible to
|
612
612
|
* rescale the image data found in a PGraphics. (It's simply not possible to
|
613
613
|
* do this consistently across renderers: technically infeasible with P3D, or
|
@@ -760,14 +760,14 @@ public class PImage implements PConstants, Cloneable {
|
|
760
760
|
* display window by specifying an additional <b>width</b> and
|
761
761
|
* <b>height</b> parameter. When getting an image, the <b>x</b> and
|
762
762
|
* <b>y</b> parameters define the coordinates for the upper-left corner of the
|
763
|
-
* image, regardless of the current <b>imageMode()</b
|
764
|
-
*
|
763
|
+
* image, regardless of the current <b>imageMode()</b>.
|
764
|
+
*
|
765
765
|
* If the pixel requested is outside of the image window, black is returned.
|
766
766
|
* The numbers returned are scaled according to the current color ranges, but
|
767
767
|
* only RGB values are returned by this function. For example, even though you
|
768
768
|
* may have drawn a shape with <b>colorMode(HSB)</b>, the numbers returned
|
769
|
-
* will be in RGB format
|
770
|
-
*
|
769
|
+
* will be in RGB format.
|
770
|
+
*
|
771
771
|
* Getting the color of a single pixel with <b>get(x, y)</b> is easy, but not
|
772
772
|
* as fast as grabbing the data directly from <b>pixels[]</b>. The equivalent
|
773
773
|
* statement to <b>get(x, y)</b> using <b>pixels[]</b> is
|
@@ -928,8 +928,8 @@ public class PImage implements PConstants, Cloneable {
|
|
928
928
|
* ( begin auto-generated from PImage_set.xml )
|
929
929
|
*
|
930
930
|
* Changes the color of any pixel or writes an image directly into the display
|
931
|
-
* window
|
932
|
-
*
|
931
|
+
* window.
|
932
|
+
*
|
933
933
|
* The <b>x</b> and <b>y</b> parameters specify the pixel to change and the
|
934
934
|
* <b>color</b> parameter specifies the color value. The color parameter is
|
935
935
|
* affected by the current color mode (the default is RGB values from 0 to
|
@@ -1058,8 +1058,8 @@ public class PImage implements PConstants, Cloneable {
|
|
1058
1058
|
* Masks part of an image from displaying by loading another image and using
|
1059
1059
|
* it as an alpha channel. This mask image should only contain grayscale data,
|
1060
1060
|
* but only the blue color channel is used. The mask image needs to be the
|
1061
|
-
* same size as the image to which it is applied
|
1062
|
-
*
|
1061
|
+
* same size as the image to which it is applied.
|
1062
|
+
*
|
1063
1063
|
* In addition to using a mask image, an integer array containing the alpha
|
1064
1064
|
* channel data can be specified directly. This method is useful for creating
|
1065
1065
|
* dynamically generated alpha masks. This array must be of the same length as
|
@@ -1169,28 +1169,28 @@ public class PImage implements PConstants, Cloneable {
|
|
1169
1169
|
/**
|
1170
1170
|
* ( begin auto-generated from PImage_filter.xml )
|
1171
1171
|
*
|
1172
|
-
* Filters an image as defined by one of the following modes:<br
|
1172
|
+
* Filters an image as defined by one of the following modes:<br
|
1173
1173
|
* />THRESHOLD - converts the image to black and white pixels depending if
|
1174
1174
|
* they are above or below the threshold defined by the level parameter. The
|
1175
1175
|
* level must be between 0.0 (black) and 1.0(white). If no level is specified,
|
1176
|
-
* 0.5 is used
|
1177
|
-
*
|
1178
|
-
* GRAY - converts any colors in the image to grayscale equivalents
|
1179
|
-
*
|
1180
|
-
* INVERT - sets each pixel to its inverse value
|
1181
|
-
*
|
1176
|
+
* 0.5 is used.
|
1177
|
+
*
|
1178
|
+
* GRAY - converts any colors in the image to grayscale equivalents
|
1179
|
+
*
|
1180
|
+
* INVERT - sets each pixel to its inverse value
|
1181
|
+
*
|
1182
1182
|
* POSTERIZE - limits each channel of the image to the number of colors
|
1183
|
-
* specified as the level parameter
|
1184
|
-
*
|
1183
|
+
* specified as the level parameter
|
1184
|
+
*
|
1185
1185
|
* BLUR - executes a Guassian blur with the level parameter specifying the
|
1186
1186
|
* extent of the blurring. If no level parameter is used, the blur is
|
1187
|
-
* equivalent to Guassian blur of radius 1
|
1188
|
-
*
|
1189
|
-
* OPAQUE - sets the alpha channel to entirely opaque
|
1190
|
-
*
|
1187
|
+
* equivalent to Guassian blur of radius 1
|
1188
|
+
*
|
1189
|
+
* OPAQUE - sets the alpha channel to entirely opaque
|
1190
|
+
*
|
1191
1191
|
* ERODE - reduces the light areas with the amount defined by the level
|
1192
|
-
* parameter
|
1193
|
-
*
|
1192
|
+
* parameter
|
1193
|
+
*
|
1194
1194
|
* DILATE - increases the light areas with the amount defined by the level
|
1195
1195
|
* parameter
|
1196
1196
|
*
|
@@ -1929,47 +1929,47 @@ public class PImage implements PConstants, Cloneable {
|
|
1929
1929
|
* Blends a region of pixels into the image specified by the <b>img</b>
|
1930
1930
|
* parameter. These copies utilize full alpha channel support and a choice of
|
1931
1931
|
* the following modes to blend the colors of source pixels (A) with the ones
|
1932
|
-
* of pixels in the destination image (B)
|
1933
|
-
*
|
1934
|
-
* BLEND - linear interpolation of colours: C = A*factor + B
|
1935
|
-
*
|
1936
|
-
* ADD - additive blending with white clip: C = min(A*factor + B, 255)
|
1937
|
-
*
|
1932
|
+
* of pixels in the destination image (B):
|
1933
|
+
*
|
1934
|
+
* BLEND - linear interpolation of colours: C = A*factor + B
|
1935
|
+
*
|
1936
|
+
* ADD - additive blending with white clip: C = min(A*factor + B, 255)
|
1937
|
+
*
|
1938
1938
|
* SUBTRACT - subtractive blending with black clip: C = max(B - A*factor,
|
1939
|
-
* 0)
|
1940
|
-
*
|
1941
|
-
* DARKEST - only the darkest colour succeeds: C = min(A*factor, B)
|
1942
|
-
*
|
1943
|
-
* LIGHTEST - only the lightest colour succeeds: C = max(A*factor, B)
|
1944
|
-
*
|
1945
|
-
* DIFFERENCE - subtract colors from underlying image
|
1946
|
-
*
|
1947
|
-
* EXCLUSION - similar to DIFFERENCE, but less extreme
|
1948
|
-
*
|
1949
|
-
* MULTIPLY - Multiply the colors, result will always be darker
|
1950
|
-
*
|
1951
|
-
* SCREEN - Opposite multiply, uses inverse values of the colors
|
1952
|
-
*
|
1939
|
+
* 0)
|
1940
|
+
*
|
1941
|
+
* DARKEST - only the darkest colour succeeds: C = min(A*factor, B)
|
1942
|
+
*
|
1943
|
+
* LIGHTEST - only the lightest colour succeeds: C = max(A*factor, B)
|
1944
|
+
*
|
1945
|
+
* DIFFERENCE - subtract colors from underlying image.
|
1946
|
+
*
|
1947
|
+
* EXCLUSION - similar to DIFFERENCE, but less extreme.
|
1948
|
+
*
|
1949
|
+
* MULTIPLY - Multiply the colors, result will always be darker.
|
1950
|
+
*
|
1951
|
+
* SCREEN - Opposite multiply, uses inverse values of the colors.
|
1952
|
+
*
|
1953
1953
|
* OVERLAY - A mix of MULTIPLY and SCREEN. Multiplies dark values, and screens
|
1954
|
-
* light values
|
1955
|
-
*
|
1956
|
-
* HARD_LIGHT - SCREEN when greater than 50% gray, MULTIPLY when lower
|
1957
|
-
*
|
1954
|
+
* light values.
|
1955
|
+
*
|
1956
|
+
* HARD_LIGHT - SCREEN when greater than 50% gray, MULTIPLY when lower.
|
1957
|
+
*
|
1958
1958
|
* SOFT_LIGHT - Mix of DARKEST and LIGHTEST. Works like OVERLAY, but not as
|
1959
|
-
* harsh
|
1960
|
-
*
|
1959
|
+
* harsh.
|
1960
|
+
*
|
1961
1961
|
* DODGE - Lightens light tones and increases contrast, ignores darks. Called
|
1962
|
-
* "Color Dodge" in Illustrator and Photoshop
|
1963
|
-
*
|
1962
|
+
* "Color Dodge" in Illustrator and Photoshop.
|
1963
|
+
*
|
1964
1964
|
* BURN - Darker areas are applied, increasing contrast, ignores lights.
|
1965
|
-
* Called "Color Burn" in Illustrator and Photoshop
|
1966
|
-
*
|
1965
|
+
* Called "Color Burn" in Illustrator and Photoshop.
|
1966
|
+
*
|
1967
1967
|
* All modes use the alpha information (highest byte) of source image pixels
|
1968
1968
|
* as the blending factor. If the source and destination regions are different
|
1969
1969
|
* sizes, the image will be automatically resized to match the destination
|
1970
1970
|
* size. If the <b>srcImg</b> parameter is not used, the display window is
|
1971
|
-
* used as the source image
|
1972
|
-
*
|
1971
|
+
* used as the source image.
|
1972
|
+
*
|
1973
1973
|
* As of release 0149, this function ignores <b>imageMode()</b>.
|
1974
1974
|
*
|
1975
1975
|
* ( end auto-generated )
|
@@ -39,13 +39,13 @@ public interface PMatrix {
|
|
39
39
|
/**
|
40
40
|
* Make this an identity matrix. Multiplying by it will have no effect.
|
41
41
|
*/
|
42
|
-
|
42
|
+
void reset();
|
43
43
|
|
44
44
|
/**
|
45
45
|
* Returns a copy of this PMatrix.
|
46
46
|
* @return
|
47
47
|
*/
|
48
|
-
|
48
|
+
PMatrix get();
|
49
49
|
|
50
50
|
/**
|
51
51
|
* Copies the matrix contents into a float array.
|
@@ -53,21 +53,21 @@ public interface PMatrix {
|
|
53
53
|
* @param target
|
54
54
|
* @return
|
55
55
|
*/
|
56
|
-
|
56
|
+
float[] get(float[] target);
|
57
57
|
|
58
58
|
|
59
59
|
/**
|
60
60
|
* Make this matrix become a copy of src.
|
61
61
|
* @param src
|
62
62
|
*/
|
63
|
-
|
63
|
+
void set(PMatrix src);
|
64
64
|
|
65
65
|
/**
|
66
66
|
* Set the contents of this matrix to the contents of source. Fills the
|
67
67
|
* matrix left-to-right, starting in the top row.
|
68
68
|
* @param source
|
69
69
|
*/
|
70
|
-
|
70
|
+
void set(float[] source);
|
71
71
|
|
72
72
|
/**
|
73
73
|
* Set the matrix content to this 2D matrix or its 3D equivalent.
|
@@ -78,7 +78,7 @@ public interface PMatrix {
|
|
78
78
|
* @param m12
|
79
79
|
* @param m11
|
80
80
|
*/
|
81
|
-
|
81
|
+
void set(float m00, float m01, float m02,
|
82
82
|
float m10, float m11, float m12);
|
83
83
|
|
84
84
|
/**
|
@@ -100,7 +100,7 @@ public interface PMatrix {
|
|
100
100
|
* @param m21
|
101
101
|
* @param m32
|
102
102
|
*/
|
103
|
-
|
103
|
+
void set(float m00, float m01, float m02, float m03,
|
104
104
|
float m10, float m11, float m12, float m13,
|
105
105
|
float m20, float m21, float m22, float m23,
|
106
106
|
float m30, float m31, float m32, float m33);
|
@@ -110,7 +110,7 @@ public interface PMatrix {
|
|
110
110
|
* @param tx
|
111
111
|
* @param ty
|
112
112
|
*/
|
113
|
-
|
113
|
+
void translate(float tx, float ty);
|
114
114
|
|
115
115
|
/**
|
116
116
|
*
|
@@ -118,31 +118,31 @@ public interface PMatrix {
|
|
118
118
|
* @param ty
|
119
119
|
* @param tz
|
120
120
|
*/
|
121
|
-
|
121
|
+
void translate(float tx, float ty, float tz);
|
122
122
|
|
123
123
|
/**
|
124
124
|
*
|
125
125
|
* @param angle
|
126
126
|
*/
|
127
|
-
|
127
|
+
void rotate(float angle);
|
128
128
|
|
129
129
|
/**
|
130
130
|
*
|
131
131
|
* @param angle
|
132
132
|
*/
|
133
|
-
|
133
|
+
void rotateX(float angle);
|
134
134
|
|
135
135
|
/**
|
136
136
|
*
|
137
137
|
* @param angle
|
138
138
|
*/
|
139
|
-
|
139
|
+
void rotateY(float angle);
|
140
140
|
|
141
141
|
/**
|
142
142
|
*
|
143
143
|
* @param angle
|
144
144
|
*/
|
145
|
-
|
145
|
+
void rotateZ(float angle);
|
146
146
|
|
147
147
|
/**
|
148
148
|
*
|
@@ -151,20 +151,20 @@ public interface PMatrix {
|
|
151
151
|
* @param v1
|
152
152
|
* @param v2
|
153
153
|
*/
|
154
|
-
|
154
|
+
void rotate(float angle, float v0, float v1, float v2);
|
155
155
|
|
156
156
|
/**
|
157
157
|
*
|
158
158
|
* @param s
|
159
159
|
*/
|
160
|
-
|
160
|
+
void scale(float s);
|
161
161
|
|
162
162
|
/**
|
163
163
|
*
|
164
164
|
* @param sx
|
165
165
|
* @param sy
|
166
166
|
*/
|
167
|
-
|
167
|
+
void scale(float sx, float sy);
|
168
168
|
|
169
169
|
/**
|
170
170
|
*
|
@@ -172,37 +172,37 @@ public interface PMatrix {
|
|
172
172
|
* @param y
|
173
173
|
* @param z
|
174
174
|
*/
|
175
|
-
|
175
|
+
void scale(float x, float y, float z);
|
176
176
|
|
177
177
|
/**
|
178
178
|
*
|
179
179
|
* @param angle
|
180
180
|
*/
|
181
|
-
|
181
|
+
void shearX(float angle);
|
182
182
|
|
183
183
|
/**
|
184
184
|
*
|
185
185
|
* @param angle
|
186
186
|
*/
|
187
|
-
|
187
|
+
void shearY(float angle);
|
188
188
|
|
189
189
|
/**
|
190
190
|
* Multiply this matrix by another.
|
191
191
|
* @param source
|
192
192
|
*/
|
193
|
-
|
193
|
+
void apply(PMatrix source);
|
194
194
|
|
195
195
|
/**
|
196
196
|
* Multiply this matrix by another.
|
197
197
|
* @param source
|
198
198
|
*/
|
199
|
-
|
199
|
+
void apply(PMatrix2D source);
|
200
200
|
|
201
201
|
/**
|
202
202
|
* Multiply this matrix by another.
|
203
203
|
* @param source
|
204
204
|
*/
|
205
|
-
|
205
|
+
void apply(PMatrix3D source);
|
206
206
|
|
207
207
|
/**
|
208
208
|
* Multiply this matrix by another.
|
@@ -213,7 +213,7 @@ public interface PMatrix {
|
|
213
213
|
* @param n01
|
214
214
|
* @param n12
|
215
215
|
*/
|
216
|
-
|
216
|
+
void apply(float n00, float n01, float n02,
|
217
217
|
float n10, float n11, float n12);
|
218
218
|
|
219
219
|
/**
|
@@ -235,7 +235,7 @@ public interface PMatrix {
|
|
235
235
|
* @param n30
|
236
236
|
* @param n33
|
237
237
|
*/
|
238
|
-
|
238
|
+
void apply(float n00, float n01, float n02, float n03,
|
239
239
|
float n10, float n11, float n12, float n13,
|
240
240
|
float n20, float n21, float n22, float n23,
|
241
241
|
float n30, float n31, float n32, float n33);
|
@@ -244,19 +244,19 @@ public interface PMatrix {
|
|
244
244
|
* Apply another matrix to the left of this one.
|
245
245
|
* @param left
|
246
246
|
*/
|
247
|
-
|
247
|
+
void preApply(PMatrix left);
|
248
248
|
|
249
249
|
/**
|
250
250
|
* Apply another matrix to the left of this one.
|
251
251
|
* @param left
|
252
252
|
*/
|
253
|
-
|
253
|
+
void preApply(PMatrix2D left);
|
254
254
|
|
255
255
|
/**
|
256
256
|
* Apply another matrix to the left of this one. 3D only.
|
257
257
|
* @param left
|
258
258
|
*/
|
259
|
-
|
259
|
+
void preApply(PMatrix3D left);
|
260
260
|
|
261
261
|
/**
|
262
262
|
* Apply another matrix to the left of this one.
|
@@ -267,7 +267,7 @@ public interface PMatrix {
|
|
267
267
|
* @param n01
|
268
268
|
* @param n11
|
269
269
|
*/
|
270
|
-
|
270
|
+
void preApply(float n00, float n01, float n02,
|
271
271
|
float n10, float n11, float n12);
|
272
272
|
|
273
273
|
/**
|
@@ -289,7 +289,7 @@ public interface PMatrix {
|
|
289
289
|
* @param n32
|
290
290
|
* @param n31
|
291
291
|
*/
|
292
|
-
|
292
|
+
void preApply(float n00, float n01, float n02, float n03,
|
293
293
|
float n10, float n11, float n12, float n13,
|
294
294
|
float n20, float n21, float n22, float n23,
|
295
295
|
float n30, float n31, float n32, float n33);
|
@@ -304,7 +304,7 @@ public interface PMatrix {
|
|
304
304
|
* @param target
|
305
305
|
* @return
|
306
306
|
*/
|
307
|
-
|
307
|
+
PVector mult(PVector source, PVector target);
|
308
308
|
|
309
309
|
|
310
310
|
/**
|
@@ -315,21 +315,21 @@ public interface PMatrix {
|
|
315
315
|
* @param target
|
316
316
|
* @return
|
317
317
|
*/
|
318
|
-
|
318
|
+
float[] mult(float[] source, float[] target);
|
319
319
|
|
320
320
|
|
321
|
-
//
|
322
|
-
//
|
321
|
+
// float multX(float x, float y);
|
322
|
+
// float multY(float x, float y);
|
323
323
|
|
324
|
-
//
|
325
|
-
//
|
326
|
-
//
|
324
|
+
// float multX(float x, float y, float z);
|
325
|
+
// float multY(float x, float y, float z);
|
326
|
+
// float multZ(float x, float y, float z);
|
327
327
|
|
328
328
|
|
329
329
|
/**
|
330
330
|
* Transpose this matrix; rows become columns and columns rows.
|
331
331
|
*/
|
332
|
-
|
332
|
+
void transpose();
|
333
333
|
|
334
334
|
|
335
335
|
/**
|
@@ -337,11 +337,11 @@ public interface PMatrix {
|
|
337
337
|
* map more than one point to the same image point, and so are irreversible.
|
338
338
|
* @return true if successful
|
339
339
|
*/
|
340
|
-
|
340
|
+
boolean invert();
|
341
341
|
|
342
342
|
|
343
343
|
/**
|
344
344
|
* @return the determinant of the matrix
|
345
345
|
*/
|
346
|
-
|
346
|
+
float determinant();
|
347
347
|
}
|