public override float CalculateDistance(Phoneme other) { Vowel vowel = other as Vowel; if (vowel != null) { return(Math.Abs(HeightValue - vowel.HeightValue) + Math.Abs(BacknessValue - vowel.BacknessValue)); } return(float.MaxValue); }
public Vowel(Vowel vowel) : this(vowel.Height, vowel.Backness, vowel.Roundedness, vowel.Grapheme, vowel.IPA, vowel.Occurence) { }
public Diphthong(Vowel first, Vowel second) : base(first) { IsLongVowel = (first == second); Second = second; }