|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgeometrie.Angles
public class Angles
classe Angles classe représentant les angles theta et phi nécessaire au positionnement 3D
Constructor Summary | |
---|---|
Angles()
constructeur Angles construit un Angles avec 0 comme valeurs par défaut |
|
Angles(double theta_,
double phi_)
constructeur Angles construit un Angles avec les paramètres spécifiés |
Method Summary | |
---|---|
void |
affiche()
methode affiche affiche les angles theta et phi |
double |
get_phi()
methode get_phi retourne l'angle phi |
double |
get_theta()
methode get_theta retourne l'angle theta |
void |
print(java.io.PrintWriter out)
methode print enregistre les angles theta et phi dans le flux spécifié |
void |
random()
methode random génère des angles aléatoires pour theta ( répartition de cos(theta) uniforme ) et phi (répartition uniforme), soit une génération aléatoire sur une sphère |
void |
set_phi(double v)
methode set_theta permet de modifier l'angle phi |
void |
set_theta(double v)
methode set_theta permet de modifier l'angle theta |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Angles()
public Angles(double theta_, double phi_)
theta_
- l'angle thetaphi_
- l'angle phiMethod Detail |
---|
public double get_theta()
public double get_phi()
public void set_theta(double v)
v
- l'angle thetapublic void set_phi(double v)
v
- l'angle phipublic void random()
public void affiche()
public void print(java.io.PrintWriter out)
out
- flux de sortie
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |