Package me.deecaad.core.utils.shape
Class LineShape
java.lang.Object
me.deecaad.core.utils.shape.LineShape
- All Implemented Interfaces:
Shape
A line segment from
from to to, both expressed in emitter-local coordinates.
t parameterizes position along the line. direction is the zero vector, so the
emitter falls back to its own direction provider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.util.VectorgetFrom()@NotNull ShapePointgetPoint(double t) Returns one sample from this shape.@NotNull org.bukkit.util.VectorgetTo()
-
Constructor Details
-
LineShape
public LineShape(@NotNull @NotNull org.bukkit.util.Vector from, @NotNull @NotNull org.bukkit.util.Vector to) -
LineShape
public LineShape(double length) Convenience constructor: a line oflengthalong the local +Z axis.
-
-
Method Details
-
getFrom
@NotNull public @NotNull org.bukkit.util.Vector getFrom() -
getTo
@NotNull public @NotNull org.bukkit.util.Vector getTo() -
getPoint
Description copied from interface:ShapeReturns one sample from this shape. For random shapes (sphere, cone, cube)tis ignored; for deterministic shapes (point, line, circle)tparameterizes the sample.
-