Skip to content
Snippets Groups Projects
Commit fd0f5280 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

Use daouble generator

parent cd5ae704
No related merge requests found
Pipeline #346 failed with stages
in 0 seconds
......@@ -13,15 +13,15 @@ public class Vector3D {
public static Vector3D generate() {
return new Vector3D(RandomGenarator.generateRandomVectorName(), // name
100 - RandomGenarator.random.nextInt(200), // X
100 - RandomGenarator.random.nextInt(200), // Y
100 - RandomGenarator.random.nextInt(200)); // Z
5000. - RandomGenarator.random.nextDouble() * 10000., // X
5000. - RandomGenarator.random.nextDouble() * 10000, // Y
5000. - RandomGenarator.random.nextDouble() * 10000); // Z
}
public Vector3D() {
}
public Vector3D(String name, int x, int y, int z) {
public Vector3D(String name, double x, double y, double z) {
this.name = name;
this.x = x;
this.y = y;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment