nl.tudelft.simulation.language.d3
Class SphericalPoint

java.lang.Object
  extended by nl.tudelft.simulation.language.d3.SphericalPoint

public class SphericalPoint
extends Object

A sphericalpoint as defined in http://mathworld.wolfram.com/SphericalCoordinates.html .

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.

See for project information www.simulation.tudelft.nl/language
License of use: Lesser General Public License (LGPL) , no warranty

Since:
1.4
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:54 $
Author:
Peter Jacobs

Constructor Summary
SphericalPoint(double radius, double phi, double theta)
          constructs a new SphericalPoint.
 
Method Summary
 double getPhi()
           
 double getRadius()
           
 double getTheta()
           
 CartesianPoint toCartesianPoint()
          converts a sphericalpoint to a cartesian point
static CartesianPoint toCartesianPoint(SphericalPoint point)
          converts a sphericalpoint to a cartesian point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphericalPoint

public SphericalPoint(double radius,
                      double phi,
                      double theta)
constructs a new SphericalPoint.

Parameters:
phi - phi
radius - radius
theta - theta
Method Detail

getPhi

public double getPhi()
Returns:
phi

getRadius

public double getRadius()
Returns:
radius

getTheta

public double getTheta()
Returns:
theta

toCartesianPoint

public CartesianPoint toCartesianPoint()
converts a sphericalpoint to a cartesian point

Returns:
the cartesian point

toCartesianPoint

public static CartesianPoint toCartesianPoint(SphericalPoint point)
converts a sphericalpoint to a cartesian point

Parameters:
point - the sphericalpoint
Returns:
the cartesian point


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.