Uses of Class
yearreview.app.animation.Vector2D
Packages that use Vector2D
-
Uses of Vector2D in yearreview.app.animation
Fields in yearreview.app.animation declared as Vector2DModifier and TypeFieldDescriptionprivate final Vector2D[]BezierCurve.controlPointsArray of Control-Points of the curve.final Vector2DAnimationCurveControlPoint.dirDirection of the Control-Point.static final Vector2DVector2D.DOWNA constant Vector facing downwards: (0, 1)static final Vector2DVector2D.LEFTA constant Vector facing left: (-1, 0)final Vector2DAnimationCurveControlPoint.posPosition of the Control-Point.private final Vector2DAnimationCurve.posEndFinal position of the Curve.private final Vector2DAnimationCurve.posStartInitial position of the Curve.static final Vector2DVector2D.RIGHTA constant Vector facing right: (1, 0)static final Vector2DVector2D.UPA constant Vector facing upwards: (0, -1)static final Vector2DVector2D.ZEROA constant zero Vector: (0, 0)Methods in yearreview.app.animation that return Vector2DModifier and TypeMethodDescriptionBezierCurve.getEnd()Gets the last Control-Point of the Bezier.Vector2D.getInverted()Gets an inverted version of this Vector: (-x, -y)Vector2D.getNormalized()Gets a normalized version of this Vector.Vector2D.getScaled(float scale) Gets this Vector scaled by a passed value.BezierCurve.getStart()Gets the first Control-Point of the Bezier.AnimatedVector2D.getVector()Gets the vector at the current time in the animation.Gets a new Vector which is the result of subtracting this Vector with a passed Vector.static Vector2DMixes the values of two Vectors.Gets a new Vector which is the result of adding this Vector to a passed Vector.private Vector2DAnimationCurve.sampleBezierAtX(BezierCurve curve, float xVal, float min, float max) Samples the Bezier at a certain x-position by doing binary search over the interval.private Vector2DAnimationCurve.sampleBezierDeltaAtX(BezierCurve curve, float xVal, float min, float max) Samples the direction of the given Bezier at a certain x-position using binary search.AnimationCurve.sampleCurveSlope(float x) Samples the slope of the Curve at a certain x-value.BezierCurve.samplePoint(float val) Samples the Bezier at a certain point along the curve.Vector2D.setLength(float l) Gets a Vector facing the same direction as this Vector with a given length.Methods in yearreview.app.animation with parameters of type Vector2DModifier and TypeMethodDescriptionvoidAnimates the Vector to a new position using the default Duration and Curve.voidAnimates the Vector to a new position using the default Curve.voidAnimatedVector2D.animateTo(Vector2D pos, Duration d, AnimationCurve c) Animates the Vector to a new position.protected AnimationCurveAnimationCurve.getCurveWithSlope(Vector2D slope) Gets a new AnimationCurve with the start angled at a certain slope.Gets a new Vector which is the result of subtracting this Vector with a passed Vector.static Vector2DMixes the values of two Vectors.Gets a new Vector which is the result of adding this Vector to a passed Vector.Constructors in yearreview.app.animation with parameters of type Vector2DModifierConstructorDescriptionAnimatedVector2D(Vector2D initialVector) Constructs a new AnimatedVector2D from an initial position.AnimatedVector2D(Vector2D initialVector, AnimationCurve defaultCurve) Constructs a new AnimatedVector2D from an initial position and a Curve to use for animation.Constructs a Control-Point from a position.AnimationCurveControlPoint(Vector2D pos, Vector2D dir) Constructs a Control-Point from a position and direction.BezierCurve(Vector2D... controlPoints) Constructs a new BezierCurve from atleast two Control-Points.Constructor parameters in yearreview.app.animation with type arguments of type Vector2DModifierConstructorDescriptionBezierCurve(List<Vector2D> controlPoints) Constructs a new BezierCurve from a list of Control-Points.