public class Raytrace
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Point |
dest
Destination of the ray trace.
|
protected Ray |
ray
Ray describing the ray trace.
|
protected Point |
src
Source of the ray trace.
|
| Constructor and Description |
|---|
Raytrace(Point src,
Point dest)
Instanciate a new
Raytrace. |
Raytrace(Ray ray)
Instanciate a new
Raytrace. |
Raytrace(net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest)
Instanciate a new
Raytrace. |
| Modifier and Type | Method and Description |
|---|---|
Vector |
direction()
Gets the direction vector of the ray.
|
double |
distance()
Gets the length of the ray.
|
org.apache.commons.lang3.tuple.Pair<net.minecraft.util.EnumFacing,Point> |
trace(net.minecraft.util.AxisAlignedBB... aabbs) |
protected Point src
protected Point dest
protected Ray ray
public Raytrace(Point src, Point dest)
Raytrace.src - the srcdest - the destpublic Raytrace(net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest)
Raytrace.src - the srcdest - the destpublic Vector direction()
public double distance()
public org.apache.commons.lang3.tuple.Pair<net.minecraft.util.EnumFacing,Point> trace(net.minecraft.util.AxisAlignedBB... aabbs)