(p5, fn, lifecycles)
| 81 | * pre-conditions are met. |
| 82 | */ |
| 83 | export default function vectorValidation(p5, fn, lifecycles){ |
| 84 | |
| 85 | p5.registerDecorator('p5.prototype.createVector', _defaultEmptyVector); |
| 86 | p5.registerDecorator('p5.Vector.prototype.mult', _validatedVectorOperation(true)); |
| 87 | p5.registerDecorator('p5.Vector.prototype.rem', _validatedVectorOperation(true)); |
| 88 | p5.registerDecorator('p5.Vector.prototype.div', _validatedVectorOperation(true)); |
| 89 | p5.registerDecorator('p5.Vector.prototype.add', _validatedVectorOperation(false)); |
| 90 | p5.registerDecorator('p5.Vector.prototype.sub', _validatedVectorOperation(false)); |
| 91 | |
| 92 | } |
nothing calls this directly
no test coverage detected