Convert between different angle and length units and
perform longitude wrapping; convert units of distances along the surface
of the Earth

degrees2dm | Convert degrees to degrees-minutes |

degrees2dms | Convert degrees to degrees-minutes-seconds |

dm2degrees | Convert degrees-minutes to degrees |

dms2degrees | Convert degrees-minutes-seconds to degrees |

toDegrees | Convert angles to degrees |

toRadians | Convert angles to radians |

fromDegrees | Convert angles from degrees |

fromRadians | Convert angles from radians |

wrapTo180 | Wrap angle in degrees to [-180 180] |

wrapTo360 | Wrap angle in degrees to [0 360] |

wrapToPi | Wrap angle in radians to [−pi pi] |

wrapTo2Pi | Wrap angle in radians to [0 2*pi] |

unwrapMultipart | Unwrap vector of angles with NaN-delimited parts |

str2angle | Convert strings to angles in degrees |

map.geodesy.isdegree | True if string matchesdegree and false if radian |

validateLengthUnit | Validate and standardize length unit string |

unitsratio | Unit conversion factors |

deg2km | Convert spherical distance from degrees to kilometers |

deg2nm | Convert spherical distance from degrees to nautical miles |

deg2sm | Convert spherical distance from degrees to statute miles |

km2deg | Convert spherical distance from kilometers to degrees |

km2rad | Convert spherical distance from kilometers to radians |

nm2deg | Convert spherical distance from nautical miles to degrees |

nm2rad | Convert spherical distance from nautical miles to radians |

rad2km | Convert spherical distance from radians to kilometers |

rad2nm | Convert spherical distance from radians to nautical miles |

rad2sm | Convert spherical distance from radians to statute miles |

sm2deg | Convert spherical distance from statute miles to degrees |

sm2rad | Convert spherical distance from statute miles to radians |

Was this topic helpful?