1 package org
.alterverse
.world
;
13 public Point(double degrees
, double speed
) {
15 x
=speed
*Math
.sin(Math
.toRadians(degrees
));
17 z
= -speed
*Math
.cos(Math
.toRadians(degrees
));
20 public Point(double x
, double y
, double z
) {
26 public Point
trim(double spead
) {
27 return new Point(Math
.min(x
,spead
),Math
.min(y
,spead
), Math
.min(z
,spead
));
30 public Point
trim(Point p
) {
31 return new Point(Math
.min(x
,p
.x
), Math
.min(y
,p
.y
), Math
.min(z
,p
.z
));
34 public Point
bound(double min
, double max
) {
35 double lx
= Math
.abs(x
);
36 double ly
= Math
.abs(y
);
37 double lz
= Math
.abs(z
);
57 Point p
=new Point(x
,y
,z
);