Example #1
0
        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);
        }
Example #2
0
 public Vowel(Vowel vowel)
     : this(vowel.Height, vowel.Backness, vowel.Roundedness, vowel.Grapheme, vowel.IPA, vowel.Occurence)
 {
 }
Example #3
0
 public Diphthong(Vowel first, Vowel second)
     : base(first)
 {
     IsLongVowel = (first == second);
     Second      = second;
 }