getElbow method
- Size size
Gets the location of the elbow joint.
Implementation
Offset getElbow(Size size) {
final elbowX = cos(swivelAngle + pi / 2);
final elbowY = sin(swivelAngle + pi / 2);
return Offset(toAbsolute(elbowX) + size.width / 2, -toAbsolute(elbowY) + size.height / 2);
}