// // Copies data from another object. // public void CopyFrom(AcousticMaterialValue other) { LowFreqAbsorption = other.LowFreqAbsorption; MidFreqAbsorption = other.MidFreqAbsorption; HighFreqAbsorption = other.HighFreqAbsorption; Scattering = other.Scattering; }
// // Refreshes the list of presets. // public static void Initialize() { // Count the number of presets. int numPresets = 12; values = new AcousticMaterialValue[numPresets]; // Create all the built-in presets. values[0] = new AcousticMaterialValue(0.10f, 0.20f, 0.30f); values[1] = new AcousticMaterialValue(0.03f, 0.04f, 0.07f); values[2] = new AcousticMaterialValue(0.05f, 0.07f, 0.08f); values[3] = new AcousticMaterialValue(0.01f, 0.02f, 0.02f); values[4] = new AcousticMaterialValue(0.60f, 0.70f, 0.80f); values[5] = new AcousticMaterialValue(0.24f, 0.69f, 0.73f); values[6] = new AcousticMaterialValue(0.06f, 0.03f, 0.02f); values[7] = new AcousticMaterialValue(0.12f, 0.06f, 0.04f); values[8] = new AcousticMaterialValue(0.11f, 0.07f, 0.06f); values[9] = new AcousticMaterialValue(0.20f, 0.07f, 0.06f); values[10] = new AcousticMaterialValue(0.13f, 0.20f, 0.24f); values[11] = new AcousticMaterialValue(); }
// // Copy constructor. // public AcousticMaterialValue(AcousticMaterialValue other) { CopyFrom(other); }