Skip to content

Commit a8406e3

Browse files
committed
P3 newA(float[3])
1 parent 5b69622 commit a8406e3

File tree

1 file changed

+4
-0
lines changed
  • sources/net.sf.j2s.java.core/src/javajs/util

1 file changed

+4
-0
lines changed

sources/net.sf.j2s.java.core/src/javajs/util/P3.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,9 @@ public static P3 new3(float x, float y, float z) {
5858
p.z = z;
5959
return p;
6060
}
61+
62+
public static P3 newA(float[] a) {
63+
return new3(a[0], a[1], a[2]);
64+
}
6165

6266
}

0 commit comments

Comments
 (0)