public class RayUtil extends Object
Constructor and Description |
---|
RayUtil() |
Modifier and Type | Method and Description |
---|---|
static float |
getExposure(org.bukkit.Location target,
org.bukkit.Location... sources) |
static org.bukkit.util.Vector |
getRayBetween(org.bukkit.Location target,
org.bukkit.Location source) |
static org.bukkit.util.Vector |
getVelocityRay(org.bukkit.util.Vector ray)
Maps {0, 0, 0} to {0, 1, 0} and all other vectors to their normalized form.
|
public static org.bukkit.util.Vector getVelocityRay(org.bukkit.util.Vector ray)
ray
- the ray to transformpublic static float getExposure(org.bukkit.Location target, org.bukkit.Location... sources)
public static org.bukkit.util.Vector getRayBetween(org.bukkit.Location target, org.bukkit.Location source)
Copyright © 2021. All rights reserved.