/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { I = er.ReadSingle(); J = er.ReadSingle(); }
/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { I = er.ReadSingle(); J = er.ReadSingle(); K = er.ReadSingle(); W = er.ReadSingle(); Normalize(); }
/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { X = er.ReadSingle(); Y = er.ReadSingle(); Z = er.ReadSingle(); }
/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { if (this.fieldType == FieldType.AngleBounds) { Lower = Real.RadiansToDegrees(er.ReadSingle()); Upper = Real.RadiansToDegrees(er.ReadSingle()); } else { Lower = er.ReadSingle(); Upper = er.ReadSingle(); } }
/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { if (this.fieldType == FieldType.RealArgbColor) A = er.ReadSingle(); R = er.ReadSingle(); G = er.ReadSingle(); B = er.ReadSingle(); }
/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { Y = Real.RadiansToDegrees(er.ReadSingle()); P = Real.RadiansToDegrees(er.ReadSingle()); R = Real.RadiansToDegrees(er.ReadSingle()); }
/// <summary> /// Stream the field from a buffer /// </summary> /// <param name="er"></param> public override void Read(IO.EndianReader er) { if(this.fieldType == FieldType.Real || this.fieldType == FieldType.RealFraction) Value = er.ReadSingle(); else Value = RadiansToDegrees(er.ReadSingle()); // angle }