public class Ray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Vector |
direction
Direction of this
Ray . |
Point |
origin
|
Constructor and Description |
---|
Ray(Point p,
Vector v)
Instantiates a new
Ray . |
Ray(Ray r)
Instantiates a new
Ray from a specified one. |
Ray(net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest)
Instantiates a new
Ray from two Vec3 . |
Modifier and Type | Method and Description |
---|---|
Point |
getPointAt(double t)
Gets the
Point at the specified distance. |
java.util.List<Point> |
intersect(net.minecraft.util.AxisAlignedBB aabb) |
double |
intersectX(double x)
Gets the distance to the plane at x.
|
double |
intersectY(double y)
Gets the distance to the plane at y.
|
double |
intersectZ(double z)
Gets the distance to the plane at z.
|
public Ray(net.minecraft.util.Vec3 src, net.minecraft.util.Vec3 dest)
Ray
from two Vec3
.src
- the srcdest
- the destpublic Point getPointAt(double t)
Point
at the specified distance.t
- the distancepublic double intersectX(double x)
x
- the x planepublic double intersectY(double y)
y
- the y planepublic double intersectZ(double z)
z
- the z planepublic java.util.List<Point> intersect(net.minecraft.util.AxisAlignedBB aabb)