public class CustomSphere extends Object implements org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProvider
| Constructor and Description |
|---|
CustomSphere(double surface)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
double |
getCrossSection(org.apache.commons.math3.geometry.euclidean.threed.Vector3D direction) |
double |
getRadius()
Get surface radius.
|
static double |
getRadiusFromSurface(double surface)
Get radius from surface value.
|
double |
getSurface()
Get surface.
|
static double |
getSurfaceFromRadius(double radius)
Get surface from radius value.
|
int |
hashCode() |
String |
toString() |
public CustomSphere(double surface)
surface - sphere surface (m2)public double getCrossSection(org.apache.commons.math3.geometry.euclidean.threed.Vector3D direction)
getCrossSection in interface org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProviderpublic double getSurface()
public double getRadius()
public static double getRadiusFromSurface(double surface)
surface - surfacepublic static double getSurfaceFromRadius(double radius)
radius - radiusCopyright © 2017. All rights reserved.