All Downloads are FREE. Search and download functionalities are using the official Maven repository.

axle.algebra.SphericalVector.scala Maven / Gradle / Ivy

The newest version!
package axle.algebra

import axle.quanta.Angle
import axle.quanta.Distance
import axle.quanta.UnittedQuantity
import spire.algebra.Field
import spire.algebra.Order

/**
 *
 * Uses the physics conventions instead of mathematical conventions.
 *
 * http://en.wikipedia.org/wiki/Spherical_coordinate_system
 *
 */
case class SphericalVector[N: Field: Order](
  ρ: UnittedQuantity[Distance, N], // radius
  θ: UnittedQuantity[Angle, N], // 90 - latitude N, aka "co-latitude"
  φ: UnittedQuantity[Angle, N] // longitude E
  )




© 2015 - 2024 Weber Informatics LLC | Privacy Policy