Class Sphere

All Implemented Interfaces:
Serializable, Comparable, TemporalComputedObject3D, MatrixPropertiesObject, XmlRepresentable
Direct Known Subclasses:
BalleClous, BalleClous2, Hemisphere, Hemisphere, SphereDeform, SphereDiform, TRISphere, TRISphere2

public class Sphere extends ParametricSurface
See Also:
  • Field Details

  • Constructor Details

    • Sphere

      public Sphere()
    • Sphere

      public Sphere(Axe axis, double radius)
    • Sphere

      public Sphere(Point3D center, double radius)
  • Method Details

    • calculerPoint3D

      public Point3D calculerPoint3D(double u, double v)
      Overrides:
      calculerPoint3D in class ParametricSurface
    • getCircle

      public Circle getCircle()
    • setCircle

      public void setCircle(Circle circle)
    • declareProperties

      public void declareProperties()
      Description copied from class: Representable
      Declares the properties of the Representable class. This method clears the declaredDataStructure map and adds specific properties to it based on the object's rotation and type. If the object's rotation is not null and the object is not an instance of Point3D, a "rotation/Rotation" property is added. The "vectors/vectors" property is always added to the map.
      Specified by:
      declareProperties in interface MatrixPropertiesObject
      Overrides:
      declareProperties in class ParametricSurface
    • toString

      public String toString()
      Overrides:
      toString in class ParametricSurface