Vector2dfx extends Tuple2dfx<Vector2dfx> implements Vector2D<Vector2dfx, Point2dfx> { @Pure @Inline(value = "new Vector2dfx(Math.cos($1), Math.sin($1))", imported = {Vector2dfx.class}) public static Vector2dfx toOrientationVector(double angle) { return new Vector2dfx(Math.cos(angle), Math.sin(angle)); } Vector2dfx();  Vector2dfx(DoubleProperty x, DoubleProperty y);  Vector2dfx(Tuple2D<?> tuple);  Vector2dfx(int[] tuple);  Vector2dfx(double[] tuple);  Vector2dfx(int x, int y);  Vector2dfx(float x, float y);  Vector2dfx(double x, double y);  Vector2dfx(long x, long y); static Vector2dfx convert(Tuple2D<?> tuple); @Pure @Inline(value = "new Vector2dfx(Math.cos($1), Math.sin($1))", imported = {Vector2dfx.class}) static Vector2dfx toOrientationVector(double angle); @Override Vector2dfx clone(); @Override double getLength(); ReadOnlyDoubleProperty lengthProperty(); @Override double getLengthSquared(); ReadOnlyDoubleProperty lengthSquaredProperty(); @Override GeomFactory2dfx getGeomFactory(); @Override UnmodifiableVector2D<Vector2dfx, Point2dfx> toUnmodifiable();  }
@Test public void staticToOrientationVector() { assertFpVectorEquals(1, 0, Vector2dfx.toOrientationVector(0)); assertFpVectorEquals(-1, 0, Vector2dfx.toOrientationVector(Math.PI)); assertFpVectorEquals(0, 1, Vector2dfx.toOrientationVector(Math.PI/2)); assertFpVectorEquals(0, -1, Vector2dfx.toOrientationVector(-Math.PI/2)); assertInlineParameterUsage(Vector2dfx.class, "toOrientationVector", double.class); }