angle method
Implementation
double angle() {
// computes the angle in radians with respect to the positive x-axis
var angle = Math.atan2(-y, -x) + Math.pi;
return angle;
}
double angle() {
// computes the angle in radians with respect to the positive x-axis
var angle = Math.atan2(-y, -x) + Math.pi;
return angle;
}