Klasse BezierPoint
java.lang.Object
de.luckymcdev.foundryengine.common.easing.BezierPoint
A control point on a Bézier path, which may be an anchor or tangent point.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBezierPoint(BezierSpline spline, net.minecraft.world.phys.Vec3 pos, boolean isTangent) Creates a new BezierPoint belonging to the given spline. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleanReturns true if this point can be freely moved (not a tangent).Returns the mirrored tangent point on the opposite side of the anchor.getPath()Returns the BezierPath this point belongs to.net.minecraft.world.phys.Vec3getPos()Returns the position of this point.getRoot()Returns the anchor point this tangent belongs to (null if this is an anchor).Returns the splines that this point belongs to.Returns the tangent points connected to this point.booleanisEnd()Returns true if this is an endpoint (first or last anchor).booleanisFirst()Returns true if this is the first point in the path.booleanisLast()Returns true if this is the last point in the path.booleanReturns true if the owning path is a single point.booleanReturns true if this point is a tangent control point.voidsetPos(net.minecraft.world.phys.Vec3 newPos) Sets the position and updates connected tangents and spline coefficients.
-
Konstruktordetails
-
BezierPoint
Creates a new BezierPoint belonging to the given spline.
-
-
Methodendetails
-
isSinglePoint
public boolean isSinglePoint()Returns true if the owning path is a single point. -
getTangents
Returns the tangent points connected to this point. -
getSplines
Returns the splines that this point belongs to. -
getPos
public net.minecraft.world.phys.Vec3 getPos()Returns the position of this point. -
setPos
public void setPos(net.minecraft.world.phys.Vec3 newPos) Sets the position and updates connected tangents and spline coefficients. -
getPath
Returns the BezierPath this point belongs to. -
isEnd
public boolean isEnd()Returns true if this is an endpoint (first or last anchor). -
isFirst
public boolean isFirst()Returns true if this is the first point in the path. -
isLast
public boolean isLast()Returns true if this is the last point in the path. -
getRoot
Returns the anchor point this tangent belongs to (null if this is an anchor). -
getMirrorTangent
Returns the mirrored tangent point on the opposite side of the anchor. -
isTangent
public boolean isTangent()Returns true if this point is a tangent control point. -
canBeModified
public boolean canBeModified()Returns true if this point can be freely moved (not a tangent).
-