fr.cnes.genopus.nonWidget.vehicle.geometry
Class CustomSphere

java.lang.Object
  extended by fr.cnes.genopus.nonWidget.vehicle.geometry.CustomSphere
All Implemented Interfaces:
org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProvider

public class CustomSphere
extends Object
implements org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProvider

Sphere shape class.

Author:
sumelzi

Constructor Summary
CustomSphere(double surface)
          Creates a new instance.
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomSphere

public CustomSphere(double surface)
Creates a new instance.

Parameters:
surface - sphere surface (m2)
Method Detail

getCrossSection

public double getCrossSection(org.apache.commons.math3.geometry.euclidean.threed.Vector3D direction)

Specified by:
getCrossSection in interface org.apache.commons.math3.geometry.euclidean.threed.CrossSectionProvider

getSurface

public double getSurface()
Get surface.

Returns:
the surface

getRadius

public double getRadius()
Get surface radius.

Returns:
the radius

getRadiusFromSurface

public static double getRadiusFromSurface(double surface)
Get radius from surface value.

Parameters:
surface - surface
Returns:
radius

getSurfaceFromRadius

public static double getSurfaceFromRadius(double radius)
Get surface from radius value.

Parameters:
radius - radius
Returns:
surface

equals

public boolean equals(Object other)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017. All rights reserved.