Module swim.math
Package swim.math

Class R3Sphere

All Implemented Interfaces:
Debug, Shape

public class R3Sphere extends R3Shape implements Debug
  • Field Details

    • cx

      public final double cx
    • cy

      public final double cy
    • cz

      public final double cz
    • r

      public final double r
  • Constructor Details

    • R3Sphere

      public R3Sphere(double cx, double cy, double cz, double r)
  • Method Details

    • xMin

      public final double xMin()
      Specified by:
      xMin in class R3Shape
    • yMin

      public final double yMin()
      Specified by:
      yMin in class R3Shape
    • zMin

      public final double zMin()
      Specified by:
      zMin in class R3Shape
    • xMax

      public final double xMax()
      Specified by:
      xMax in class R3Shape
    • yMax

      public final double yMax()
      Specified by:
      yMax in class R3Shape
    • zMax

      public final double zMax()
      Specified by:
      zMax in class R3Shape
    • contains

      public boolean contains(R3Shape shape)
      Specified by:
      contains in class R3Shape
    • contains

      public boolean contains(R3Point point)
    • contains

      public boolean contains(R3Box box)
    • contains

      public boolean contains(R3Sphere sphere)
    • intersects

      public boolean intersects(R3Shape shape)
      Specified by:
      intersects in class R3Shape
    • intersects

      public boolean intersects(R3Point point)
    • intersects

      public boolean intersects(R3Box box)
    • intersects

      public boolean intersects(R3Sphere sphere)
    • transform

      public Z3Box transform(R3ToZ3Function f)
      Specified by:
      transform in class R3Shape
    • toValue

      public Value toValue()
      Specified by:
      toValue in interface Shape
    • canEqual

      protected boolean canEqual(R3Sphere that)
    • equals

      public boolean equals(Object other)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      the continuation of the output.
    • toString

      public String toString()
      toString in class Object
    • of

      public static R3Sphere of(double cx, double cy, double cz, double r)
    • form

      @Kind public static R3Form<R3Sphere> form()