List of usage examples for com.google.common.geometry S2Polyline getArclengthAngle
public S1Angle getArclengthAngle()
From source file:com.bc.fiduceo.geometry.s2.BcS2TimeAxis.java
private long calculateLineDuration(S2Point intersectionStartPoint) { final S2Polyline offsetGeometry = createSubLineTo(intersectionStartPoint); final S1Angle offsetAngle = offsetGeometry.getArclengthAngle(); return (long) (timeInterval * offsetAngle.radians() * invLength); }