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