public class Point
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double |
x
x coordinate of this
Point. |
double |
y
y coordinate of this
Point. |
double |
z
z coordinate of this
Point. |
| Constructor and Description |
|---|
Point(double x,
double y,
double z)
Instantiates a new point.
|
Point(Point p)
Instantiates a new point.
|
Point(net.minecraft.util.math.Vec3d v)
Instantiates a new point.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
add(double x,
double y,
double z)
Adds the x, y and z coordinates to this
Point. |
Point |
add(Vector v)
Moves this
Point according to vector. |
static double |
distance(Point p1,
Point p2)
Calculates the distance between two
points. |
static double |
distanceSquared(Point p1,
Point p2)
Calculates the squared distance between two
points. |
boolean |
equals(Point p)
Checks if this
Point is equal to the specified one. |
boolean |
isInside(net.minecraft.util.math.AxisAlignedBB aabb)
Checks if this
Point is inside the AxisAlignedBB. |
void |
set(double x,
double y,
double z)
Sets this point to x, y and z coordinates.
|
java.lang.String |
toString() |
net.minecraft.util.math.Vec3d |
toVec3d()
Creates a
Vec3d from this Point coordinates. |
public double x
Point.public double y
Point.public double z
Point.public Point(double x,
double y,
double z)
x - the xy - the yz - the zpublic Point(Point p)
p - the ppublic Point(net.minecraft.util.math.Vec3d v)
v - the vpublic void set(double x,
double y,
double z)
x - the xy - the yz - the zpublic Point add(Vector v)
Point according to vector.v - the vpublic Point add(double x, double y, double z)
Point.x - the xy - the yz - the zpublic boolean isInside(net.minecraft.util.math.AxisAlignedBB aabb)
Point is inside the AxisAlignedBB.aabb - the aabbpublic net.minecraft.util.math.Vec3d toVec3d()
Vec3d from this Point coordinates.public boolean equals(Point p)
Point is equal to the specified one.p - the point to checkpublic java.lang.String toString()
toString in class java.lang.Objectpublic static double distanceSquared(Point p1, Point p2)
points.p1 - fist pointp2 - second point