Browse files

Use Vectorz.toVector to allow different input types for VectorFunction

  • Loading branch information...
1 parent b1ae79b commit a8cac582c8b77ac66bd907d0f5292b0f89fdb088 @mikera committed Jan 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/clisk/VectorFunction.java
View
3 src/main/java/clisk/VectorFunction.java
@@ -8,6 +8,7 @@
import mikera.vectorz.AVector;
import mikera.vectorz.Vector3;
+import mikera.vectorz.Vectorz;
/**
* Class representing a Vector function transform constructed from clisk functions.
@@ -101,7 +102,7 @@ public Object invoke() {
@Override
public Object invoke(Object arg1) {
- return transform((AVector)arg1);
+ return transform(Vectorz.toVector(arg1));
}
@Override

0 comments on commit a8cac58

Please sign in to comment.