Class

com.spark3d.geometryObjects

Sphere

Related Doc: package geometryObjects

Permalink

class Sphere extends Shape3D with Serializable

Class to handle a Sphere

Linear Supertypes
Serializable, Serializable, Shape3D, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sphere
  2. Serializable
  3. Serializable
  4. Shape3D
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Sphere(x: Double, y: Double, z: Double, radius: Double)

    Permalink

    x

    : (Double) X coordinate of the center

    y

    : (Double) Y coordinate of the center

    z

    : (Double) Z coordinate of the center

    radius

    : (Double) Radius of the Sphere

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val center: Point3D

    Permalink

    The center

    The center

    Definition Classes
    SphereShape3D
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getEnvelope: BoxEnvelope

    Permalink

    Get the bounding box of the Sphere

    Get the bounding box of the Sphere

    returns

    bounding box (Cuboid) of the Sphere

    Definition Classes
    SphereShape3D
  12. def getVolume: Double

    Permalink

    Volume of a Sphere.

    Volume of a Sphere.

    returns

    (Double) 4/3 * pi * R**3

    Definition Classes
    SphereShape3D
  13. def hasCenterCloseTo(p: Point3D, epsilon: Double): Boolean

    Permalink

    Return if the input Point3D is equal this Point3D

    Return if the input Point3D is equal this Point3D

    p

    Point3D for which the comparison has to be done

    returns

    true if the two Point3D centers are within epsilon

    Definition Classes
    Shape3D
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def intersect(otherShape: Shape3D): Boolean

    Permalink

    Methods to determine whether two shapes overlap.

    Methods to determine whether two shapes overlap. Implement different ways for different shapes.

    otherShape

    : (Shape3D) An instance of Shape3D (or extension)

    returns

    (Boolean) true if the two objects intersect.

    Definition Classes
    SphereShape3D
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val radius: Double

    Permalink

    : (Double) Radius of the Sphere

    : (Double) Radius of the Sphere

    Definition Classes
    SphereShape3D
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toHealpix(nside: Int, thetaphi: Boolean = false): Long

    Permalink

    Compute the healpix index of the geometry center.

    Compute the healpix index of the geometry center. By default, the method considers that this.y = ra, this.z = dec. You can also bypass that, and force this.y = theta, this.z = phi by setting thetaphi = true. We only consider the RING scheme for the moment.

    nside

    : (Int) Resolution of the healpix map.

    thetaphi

    : (Boolean) Convention for your data: this.y = ra, this.z = dec if false, this.y = theta, this.z = phi otherwise. Default is false.

    returns

    (Long) Healpix index of the point for the resolution chosen.

    Definition Classes
    Shape3D
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val x: Double

    Permalink

    : (Double) X coordinate of the center

  28. val y: Double

    Permalink

    : (Double) Y coordinate of the center

  29. val z: Double

    Permalink

    : (Double) Z coordinate of the center

Inherited from Serializable

Inherited from Serializable

Inherited from Shape3D

Inherited from AnyRef

Inherited from Any

Ungrouped