getNormal method
dynamic
getNormal(
- dynamic p1,
- dynamic p2,
- dynamic result
Implementation
getNormal(p1, p2, result) {
result.subVectors(p2, p1);
return result.set(-result.y, result.x).normalize();
}