src/classes/Interval.js
// Convert meter vector back to Lat/Lng and find offset from set point (Point B):
Convert meter vector back to Lat/Lng and find offset from set point (Point B).
Convert meter vector back to Lat / Lng and find offset from set point ( Point B ) .
static offsetFromPoint(pointLat, pointLng, normalizedOffsetMetersX, normalizedOffsetMetersY, offsetLengthMeters = 1) {
    const latOffset = METER_LAT_OFFSET * normalizedOffsetMetersX * offsetLengthMeters;
    const lngOffset = METER_LNG_OFFSET * normalizedOffsetMetersY * offsetLengthMeters;
    const lat = pointLat + latOffset;
    const lng = pointLng + lngOffset;
    return [lat, lng];
  }
static offsetFromPoint ( pointLat , pointLng , normalizedOffsetMetersX , normalizedOffsetMetersY , offsetLengthMeters = 1 ) { const latOffset = METER_LAT_OFFSET * normalizedOffsetMetersX * offsetLengthMeters ; const lngOffset = METER_LNG_OFFSET * normalizedOffsetMetersY * offsetLengthMeters ; const lat = pointLat + latOffset ; const lng = pointLng + lngOffset ; return [ lat , lng ] ; }
Convert meter vector back to Lat/Lng and find offset from set point (Point B):
Convert meter vector back to Lat / Lng and find offset from set point ( Point B ) :