public final class Point3D extends Object implements Serializable
Constructor and Description |
---|
Point3D() |
Point3D(double x,
double y,
double z) |
Point3D(Point3D other) |
Modifier and Type | Method and Description |
---|---|
static Point3D |
construct(double x,
double y,
double z) |
double |
dotProduct(Point3D other) |
double |
length() |
void |
mul(double factor) |
void |
normalize() |
void |
scale(double f,
Point3D other) |
void |
setCoords(double x,
double y,
double z) |
void |
setCoords(Point3D other) |
void |
setZero() |
double |
sqrLength() |
void |
sub(Point3D other) |
void |
sub(Point3D p1,
Point3D p2) |
public Point3D()
public Point3D(Point3D other)
public Point3D(double x, double y, double z)
public static Point3D construct(double x, double y, double z)
public void setCoords(double x, double y, double z)
public void setCoords(Point3D other)
public void setZero()
public void normalize()
public double dotProduct(Point3D other)
public double sqrLength()
public double length()
public void sub(Point3D other)
public void scale(double f, Point3D other)
public void mul(double factor)
Copyright © 2018. All rights reserved.