Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?
final class Point {
private $angle;
private $distance;
public function x() {
return $this->distance * cos($this->angle);
}
public function y() {
return $this->distance * sin($this->angle);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment