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

com.ctreber.acearth.util.Point3D Maven / Gradle / Ivy

Go to download

PlantUML is a component that allows to quickly write : * sequence diagram, * use case diagram, * class diagram, * activity diagram, * component diagram, * state diagram * object diagram

There is a newer version: 8059
Show newest version
package com.ctreber.acearth.util;

/**
 * 

A point in a 2 axis space. * *

© 2002 Christian Treber, [email protected] * @author Christian Treber, [email protected] * */ public class Point3D { private double fX; private double fY; private double fZ; public Point3D(double pX, double pY, double pZ) { fX = pX; fY = pY; fZ = pZ; } public double getX() { return fX; } public double getY() { return fY; } public double getZ() { return fZ; } public String toString() { return "x: " + fX + ", y: " + fY + ", z: " + fZ; } public Coordinate getCoordinate() { return new Coordinate(Toolkit.radsToDegs(Math.asin(fY)), Toolkit.radsToDegs(Math.atan2(fX, fZ))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy