Class DirectivityRecord
java.lang.Object
org.noise_planet.noisemodelling.emission.directivity.DirectivityRecord
-
Constructor Summary
ConstructorsConstructorDescriptionDirectivityRecord(double theta, double phi, double[] attenuation) directivity record is the attenuation value for a specific angle (theta, phi) - a point of the directivity sphere -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare the values of theta et phi of the Object DirectivityRecorddouble[]doublegetPhi()doublegetTheta()inthashCode()generate a hash code for an object with theta and phi argumenttoString()generate a string representation of the object DirectivityRecord
-
Constructor Details
-
DirectivityRecord
public DirectivityRecord(double theta, double phi, double[] attenuation) directivity record is the attenuation value for a specific angle (theta, phi) - a point of the directivity sphere- Parameters:
theta- (-π/2 π/2) 0 is horizontal; π is topphi- (0 2π) 0 is frontattenuation- in dB
-
-
Method Details
-
getTheta
public double getTheta()- Returns:
- Theta
-
getPhi
public double getPhi() -
equals
compare the values of theta et phi of the Object DirectivityRecord -
hashCode
public int hashCode()generate a hash code for an object with theta and phi argument -
toString
generate a string representation of the object DirectivityRecord -
getAttenuation
public double[] getAttenuation()
-