Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Area: new implementation avoiding isCCW, and taking radius. #21

Merged
merged 3 commits into from
Sep 27, 2013
Merged

Area: new implementation avoiding isCCW, and taking radius. #21

merged 3 commits into from
Sep 27, 2013

Conversation

preda
Copy link

@preda preda commented Sep 2, 2013

No description provided.

total += computeSignedTriangleArea(origin, loop.get(i), loop.get(i + 1));
}
return total * EARTH_RADIUS * EARTH_RADIUS;
public static double computeArea(List<LatLng> path, double radius) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to keep the API smaller and omit the radius parameter. Can you make this method private?

@preda
Copy link
Author

preda commented Sep 25, 2013

I acted on comments -- are any other observations, or is this good for merge?

broady added a commit that referenced this pull request Sep 27, 2013
Area: new implementation avoiding isCCW, and taking radius.
@broady broady merged commit 9f40fd0 into googlemaps:master Sep 27, 2013
broady pushed a commit that referenced this pull request Feb 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants