Class Sphere3D

java.lang.Object
org.jlab.geom.prim.Sphere3D
All Implemented Interfaces:
Transformable, Showable

public class Sphere3D extends Object implements Transformable, Showable
Author:
gavalian
  • Constructor Details Link icon

    • Sphere3D Link icon

      public Sphere3D()
    • Sphere3D Link icon

      public Sphere3D(double x, double y, double z, double r)
  • Method Details Link icon

    • translateXYZ Link icon

      public void translateXYZ(double dx, double dy, double dz)
      Description copied from interface: Transformable
      Translates this object linearly by the amounts specified.
      Specified by:
      translateXYZ in interface Transformable
      Parameters:
      dx - amount to translate along the x axis
      dy - amount to translate along the y axis
      dz - amount to translate along the z axis
    • rotateX Link icon

      public void rotateX(double angle)
      Description copied from interface: Transformable
      Rotates this object clockwise around the x axis.
      Specified by:
      rotateX in interface Transformable
      Parameters:
      angle - rotation angle in radians
    • rotateY Link icon

      public void rotateY(double angle)
      Description copied from interface: Transformable
      Rotates this object clockwise around the y axis.
      Specified by:
      rotateY in interface Transformable
      Parameters:
      angle - rotation angle in radians
    • rotateZ Link icon

      public void rotateZ(double angle)
      Description copied from interface: Transformable
      Rotates this object clockwise around the z axis.
      Specified by:
      rotateZ in interface Transformable
      Parameters:
      angle - rotation angle in radians
    • show Link icon

      public void show()
      Specified by:
      show in interface Showable
    • getCenter Link icon

      public Point3D getCenter()
    • getRadius Link icon

      public double getRadius()
    • getNormal Link icon

      public Vector3D getNormal(double x, double y, double z)
    • intersection Link icon

      public int intersection(Line3D line, List<Point3D> intersections)
    • main Link icon

      public static void main(String[] args)