public class Point extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
x
x- coordinate
|
int |
y
y- coordinate
|
int |
z
z- coordinate
|
| Constructor and Description |
|---|
Point(int x,
int y,
int z)
Create point from integer coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
clone() |
boolean |
equals(Object o)
Override equals method to compare points.
|
String |
toString()
Convert point to string.
|
public Point(int x,
int y,
int z)
x - x- coordinatey - y- coordinatez - z- coordinatepublic boolean equals(Object o)
Copyright © 2015–2021 Fiji. All rights reserved.