call method

  1. @override
Object call(
  1. Interpreter interpreter,
  2. List<Object?> arguments,
  3. Map<Symbol, Object?> namedArguments
)
override

Implementation

@override
Object call(Interpreter interpreter, List<Object?> arguments,
    Map<Symbol, Object?> namedArguments) {
  if (arguments.length < 16) {
    throw "16 arguments required in Matrix4.fromList";
  }
  return Matrix4(
    arguments[0] as double,
    arguments[1] as double,
    arguments[2] as double,
    arguments[3] as double,
    arguments[4] as double,
    arguments[5] as double,
    arguments[6] as double,
    arguments[7] as double,
    arguments[8] as double,
    arguments[9] as double,
    arguments[10] as double,
    arguments[11] as double,
    arguments[12] as double,
    arguments[13] as double,
    arguments[14] as double,
    arguments[15] as double,
  );
}