Class DirectivityRecord
- java.lang.Object
-
- org.noise_planet.noisemodelling.emission.directivity.DirectivityRecord
-
public class DirectivityRecord extends Object
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)compare the values of theta et phi of the Object DirectivityRecorddouble[]getAttenuation()doublegetPhi()doublegetTheta()inthashCode()generate a hash code for an object with theta and phi argumentStringtoString()generate a string representation of the object DirectivityRecord
-
-
-
Constructor Detail
-
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 Detail
-
getTheta
public double getTheta()
- Returns:
- Theta
-
getPhi
public double getPhi()
-
equals
public boolean equals(Object o)
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
public String toString()
generate a string representation of the object DirectivityRecord
-
getAttenuation
public double[] getAttenuation()
-
-