source: java/main/src/main/java/com/framsticks/util/Point3d.java @ 77

Last change on this file since 77 was 77, checked in by psniegowski, 11 years ago

Add new java codebase.

File size: 497 bytes
Line 
1package com.framsticks.util;
2       
3/**
4 * The simple class which represent point in 3d space.
5 */
6public class Point3d
7{
8        public Double x;
9        public Double y;
10        public Double z;
11
12        public Point3d() {
13                x = 0.0;
14                y = 0.0;
15                z = 0.0;
16        }
17
18        public Point3d(Double x, Double y, Double z) {
19                this.x = x;
20                this.y = y;
21                this.z = z;
22        }
23
24        @Override
25        public String toString() {
26                //return new StringBuilder().append(x).append(" ").append(y).append(" ").append("z").toString();
27                return x + " " + y + " " + z;
28        }
29}
Note: See TracBrowser for help on using the repository browser.