use of org.matheclipse.core.interfaces.IEvaluator in project symja_android_library by axkr.
the class GraphicsFunctions method primitivesDimension.
public static boolean primitivesDimension(IAST list, Dimensions2D dim) {
for (int i = 1; i < list.size(); i++) {
if (list.get(i).isAST()) {
IAST primitive = (IAST) list.get(i);
if (primitive.head().isBuiltInSymbol()) {
IBuiltInSymbol symbol = (IBuiltInSymbol) primitive.head();
IEvaluator evaluator = symbol.getEvaluator();
if (evaluator instanceof IGraphics3D) {
if (!((IGraphics3D) evaluator).graphics2DDimension(primitive, dim)) {
// return false;
}
}
}
}
}
return true;
}
Aggregations