public class Point3D extends Object
This class represents a point in a 3D coordinate system. It is defined by its position (x,y,z), its size and its color.
A point can be drawn in the following modes:
Modifier and Type | Field and Description |
---|---|
static int |
CIRCLE
Draws a point as a (2D) circle.
|
static int |
DOT
Draws a point as a dot.
|
protected int |
drawMode |
protected int |
rgb
color of point
|
protected double |
size
size of point
|
static int |
SPHERE
Draws a point as a sphere (slowest).
|
protected double |
x
x-coordinate
|
protected double |
y
y-coordinate
|
protected double |
z
z-coordinate
|
Modifier | Constructor and Description |
---|---|
protected |
Point3D() |
|
Point3D(double x,
double y,
double z,
Color c) |
|
Point3D(double x,
double y,
double z,
double size,
Color color)
Creates a new Point3D object with given x, y, and z coordinates, size and color.
|
|
Point3D(double x,
double y,
double z,
double size,
Color color,
int drawMode)
Creates a new Point3D object with given x, y, and z coordinates, size and color.
|
|
Point3D(double x,
double y,
double z,
double size,
int rgb)
Creates a new Point3D object with given x, y, and z coordinates, size and color.
|
|
Point3D(double x,
double y,
double z,
double size,
int rgb,
int drawMode)
Creates a new Point3D object with given x, y, and z coordinates, size and color.
|
|
Point3D(double x,
double y,
double z,
int c)
Creates a new Point3D object.
|
public static final int DOT
public static final int CIRCLE
public static final int SPHERE
protected double x
protected double y
protected double z
protected int rgb
protected double size
protected int drawMode
protected Point3D()
public Point3D(double x, double y, double z, int c)
public Point3D(double x, double y, double z, Color c)
public Point3D(double x, double y, double z, double size, int rgb)
x
- the x-coordinatey
- the y-coordinatez
- the z-coordinatesize
- the size of the pointrgb
- the rgb-value of the point (like 0xFF00FFFF)public Point3D(double x, double y, double z, double size, int rgb, int drawMode)
x
- the x-coordinatey
- the y-coordinatez
- the z-coordinatesize
- the size of the pointrgb
- the rgb-value of the point (like 0xFF00FFFF)drawMode
- mode of drawing the pointpublic Point3D(double x, double y, double z, double size, Color color)
x
- the x-coordinatey
- the y-coordinatez
- the z-coordinatesize
- the size of the pointcolor
- the color of the point (like Color.RED)public Point3D(double x, double y, double z, double size, Color color, int drawMode)
x
- the x-coordinatey
- the y-coordinatez
- the z-coordinatesize
- the size of the pointcolor
- the color of the point (like Color.RED)drawMode
- mode of drawing the pointCopyright © 2015–2021 Fiji. All rights reserved.