Inheritance: Canguro.Utility.GlobalizedObject, ICloneable
 public override bool Equals(object obj)
 {
     if (obj is LineEndOffsets)
     {
         LineEndOffsets o = (LineEndOffsets)obj;
         return(offI.Equals(o.offI) && offJ.Equals(o.offJ) && factor.Equals(o.factor));
     }
     return(false);
 }
示例#2
0
 /// <summary>
 /// Constructora de copia que inicializa el LineElement como un clon de otro.
 /// </summary>
 /// <param name="src">El LineElement a copiar</param>
 internal LineElement(LineElement src, Joint i, Joint j) : base(src)
 {
     props         = (LineProps)src.Properties.Clone();
     joints        = new Joint[2];
     angle         = src.Angle;
     cardinalPoint = src.CardinalPoint;
     offsets       = src.EndOffsets;
     dofI          = src.DoFI;
     dofJ          = src.DoFJ;
     joints[0]     = i;
     joints[1]     = j;
 }
示例#3
0
 /// <summary>
 /// Constructora de copia que inicializa el LineElement como un clon de otro.
 /// </summary>
 /// <param name="src">El LineElement a copiar</param>
 internal LineElement(LineElement src, Joint i, Joint j) : base(src)
 {
     props = (LineProps)src.Properties.Clone();
     joints = new Joint[2];
     angle = src.Angle;
     cardinalPoint = src.CardinalPoint;
     offsets = src.EndOffsets;
     dofI = src.DoFI;
     dofJ = src.DoFJ;
     joints[0] = i;
     joints[1] = j;
 }