|
|
|
|
Source |
1 | package com.instantiations.example.miscellaneous; |
2 | |
3 | /** |
4 | * The class <code>Point3D</code> is a simple data holder used by one of the |
5 | * examples in the class {@link BranchingCode}. |
6 | * @author Chris Cummings |
7 | */ |
8 | public class Point3D |
9 | { |
10 | public int x; |
11 | |
12 | public int y; |
13 | |
14 | public int z; |
15 | |
16 | public Point3D() |
17 | { |
18 | this(0, 0, 0); |
19 | } |
20 | |
21 | public Point3D(int x, int y, int z) |
22 | { |
23 | this.x = x; |
24 | this.y = y; |
25 | this.z = z; |
26 | } |
27 | } |