Klasse BezierPoint

java.lang.Object
de.luckymcdev.foundryengine.common.easing.BezierPoint

public class BezierPoint extends Object
A control point on a Bézier path, which may be an anchor or tangent point.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    BezierPoint(BezierSpline spline, net.minecraft.world.phys.Vec3 pos, boolean isTangent)
    Creates a new BezierPoint belonging to the given spline.
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    boolean
    Returns true if this point can be freely moved (not a tangent).
    Returns the mirrored tangent point on the opposite side of the anchor.
    Returns the BezierPath this point belongs to.
    net.minecraft.world.phys.Vec3
    Returns the position of this point.
    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.
    boolean
    Returns true if this is an endpoint (first or last anchor).
    boolean
    Returns true if this is the first point in the path.
    boolean
    Returns true if this is the last point in the path.
    boolean
    Returns true if the owning path is a single point.
    boolean
    Returns true if this point is a tangent control point.
    void
    setPos(net.minecraft.world.phys.Vec3 newPos)
    Sets the position and updates connected tangents and spline coefficients.

    Von Klasse geerbte Methoden Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • BezierPoint

      public BezierPoint(BezierSpline spline, net.minecraft.world.phys.Vec3 pos, boolean isTangent)
      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

      public List<BezierPoint> getTangents()
      Returns the tangent points connected to this point.
    • getSplines

      public ArrayList<BezierSpline> 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

      public BezierPath 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

      public BezierPoint getRoot()
      Returns the anchor point this tangent belongs to (null if this is an anchor).
    • getMirrorTangent

      public BezierPoint 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).