User Manual 4.0 Spheres : Différence entre versions

De Wiki
Aller à : navigation, rechercher
(Page créée avec « ==== Definition ==== A sphere is an ellipsoid with equal equatorial and polar radii. Assuming the XYZ coordinate system is such that the sphere is centered and axis-align... »)
(Aucune différence)

Version du 4 avril 2018 à 08:47

Definition

A sphere is an ellipsoid with equal equatorial and polar radii. Assuming the XYZ coordinate system is such that the sphere is centered and axis-aligned, the spheres' equation is given by:

[math]\mathcal{S} = \left\{ (x, y, z) \in \mathbb{R}^3 \middle/ x^2 + y^2 + z^2 = r^2 \right\}[/math]
Sphere.PNG

Implementation

The Sphere object in the SIRIUS library implements the [MAT_GEO_EllipsoidInterface Ellipsoid interface]. Please refer to the Javadoc for a complete list of public methods.

Instantiation

The sphere object is built from a centre (Vector3D) and a radius :

Vector3D centre = new Vector3D(1.0, 5.0,-2.0);
double radius = 1.2;
Sphere sphere = new Sphere(centre, radius);

Usage

Please refer to the [MAT_GEO_Home#HInteractions Interactions with other geometrical objects section] for methods inherited from the Shape interface.