Ejemplo n.º 1
0
        /// <summary>
        /// Copy & Modify Constructor.
        /// </summary>
        /// <param name="p"></param>
        /// <param name="fieldName"></param>
        /// <param name="value"></param>
        public Euler3f(Euler3f p, string fieldName, float value) : this(p)
        {
            switch (fieldName)
            {
            case DisplayNames.Pitch: Pitch = value; break;

            case DisplayNames.Yaw: Yaw = value; break;

            case DisplayNames.Roll: Roll = value; break;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Copy Constructor.
 /// </summary>
 /// <param name="p"></param>
 public Euler3f(Euler3f p) : this(p.Pitch, p.Yaw, p.Roll)
 {
 }