Class ElementSphere

All Implemented Interfaces:
Element, ElementEllipsoid, ElementSphere, InteractionSource

public class ElementSphere extends ElementEllipsoid implements ElementSphere

Title: ElementSphere

Description: An Ellipsoid with the same size in all dimensions.

Changing the size in any dimension also sets the other sizes. Setting different sizes to X, Y, and Z will result in setting the radius to the largest of the three dimensions.

Version:
May 2005
Author:
Francisco Esquembre
  • Constructor Details

    • ElementSphere

      public ElementSphere()
      Constructor ElementSphere
    • ElementSphere

      public ElementSphere(double radius)
      Constructor ElementSphere
      Parameters:
      radius -
  • Method Details

    • setRadius

      public void setRadius(double radius)
      Description copied from interface: ElementSphere
      Sets the radius.
      Specified by:
      setRadius in interface ElementSphere
      Parameters:
      radius - the radius
    • getRadius

      public double getRadius()
      Description copied from interface: ElementSphere
      Gets the radius
      Specified by:
      getRadius in interface ElementSphere
      Returns:
      the radius
    • setSizeX

      public void setSizeX(double sizeX)
      Description copied from interface: Element
      Set the size along the X axis
      Specified by:
      setSizeX in interface Element
      Overrides:
      setSizeX in class Element
      Parameters:
      sizeX - double
    • setSizeY

      public void setSizeY(double sizeY)
      Description copied from interface: Element
      Set the size along the Y axis
      Specified by:
      setSizeY in interface Element
      Overrides:
      setSizeY in class Element
      Parameters:
      sizeY - double
    • setSizeZ

      public void setSizeZ(double sizeZ)
      Description copied from interface: Element
      Set the size along the Z axis
      Specified by:
      setSizeZ in interface Element
      Overrides:
      setSizeZ in class Element
      Parameters:
      sizeZ - double
    • setSizeXYZ

      public void setSizeXYZ(double sizeX, double sizeY, double sizeZ)
      Description copied from interface: Element
      Set the size along the X, Y and Z axes
      Specified by:
      setSizeXYZ in interface Element
      Overrides:
      setSizeXYZ in class Element
      Parameters:
      sizeX - double
      sizeY - double
      sizeZ - double