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.controlPoints
Array of Control-Points of the curve.final Vector2D
AnimationCurveControlPoint.dir
Direction of the Control-Point.static final Vector2D
Vector2D.DOWN
A constant Vector facing downwards: (0, 1)static final Vector2D
Vector2D.LEFT
A constant Vector facing left: (-1, 0)final Vector2D
AnimationCurveControlPoint.pos
Position of the Control-Point.private final Vector2D
AnimationCurve.posEnd
Final position of the Curve.private final Vector2D
AnimationCurve.posStart
Initial position of the Curve.static final Vector2D
Vector2D.RIGHT
A constant Vector facing right: (1, 0)static final Vector2D
Vector2D.UP
A constant Vector facing upwards: (0, -1)static final Vector2D
Vector2D.ZERO
A 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 Vector2D
Mixes the values of two Vectors.Gets a new Vector which is the result of adding this Vector to a passed Vector.private Vector2D
AnimationCurve.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 Vector2D
AnimationCurve.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 TypeMethodDescriptionvoid
Animates the Vector to a new position using the default Duration and Curve.void
Animates the Vector to a new position using the default Curve.void
AnimatedVector2D.animateTo
(Vector2D pos, Duration d, AnimationCurve c) Animates the Vector to a new position.protected AnimationCurve
AnimationCurve.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 Vector2D
Mixes 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.