Ejemplo n.º 1
0
 new public void writeURDF(XmlWriter writer)
 {
     writer.WriteStartElement("inertia");
     writer.WriteAttributeString("ixx", Ixx.ToString());
     writer.WriteAttributeString("ixy", Ixy.ToString());
     writer.WriteAttributeString("ixz", Ixz.ToString());
     writer.WriteAttributeString("iyy", Iyy.ToString());
     writer.WriteAttributeString("iyz", Iyz.ToString());
     writer.WriteAttributeString("izz", Izz.ToString());
     writer.WriteEndElement();
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Ixx.GetHashCode();
         hashCode = (hashCode * 397) ^ Ixy.GetHashCode();
         hashCode = (hashCode * 397) ^ Ixz.GetHashCode();
         hashCode = (hashCode * 397) ^ Iyy.GetHashCode();
         hashCode = (hashCode * 397) ^ Iyz.GetHashCode();
         hashCode = (hashCode * 397) ^ Izz.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
 protected bool Equals(Inertia other)
 {
     return(Ixx.Equals(other.Ixx) && Ixy.Equals(other.Ixy) && Ixz.Equals(other.Ixz) &&
            Iyy.Equals(other.Iyy) && Iyz.Equals(other.Iyz) && Izz.Equals(other.Izz));
 }