![]() If the numerator is positive, then the arctan value is pi/2, while if it is negative, the arctan value is -pi/2. Note that LabVIEW's arctan function needs to be supplemented with a "guard" for a zero denominator. Latitude = arctan (Z / sqrt(sqr(X) + sqr(Y)) Longitude = arctan (Y/X) (note that the arctan is defined even if X = 0) Furthermore, as long as all of X, Y, and Z are not all zero, these equations can easily be inverted: ![]() Note your equations, given R, Latitude and Longitude, any values of these quantities will give finite values for X, Y, and Z. ![]() The equations you've cited are the relationships that allow you to convert between Cartesian coordinates (X, Y, Z) and Spherical Polar Coordinates (Radius, Latitude, and Longitude, usually expressed with the Greek characters rho, theta, and phi).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |