コード例 #1
0
 public MeepBlock(MeepMaterialType material, MeepVector3 center, MeepVector3 size)
     : base(material, center)
 {
     Size = size;
     E1   = MeepVector3.AxisX;
     E2   = MeepVector3.AxisY;
     E3   = MeepVector3.AxisZ;
 }
コード例 #2
0
            public override bool Equals(MeepMaterialType other)
            {
                if (other == null || this.GetType() != other.GetType())
                {
                    return(false);
                }
                MeepDefinedMaterial _other = other as MeepDefinedMaterial;

                return(this.MaterialName == _other.MaterialName);
            }
コード例 #3
0
            public override bool Equals(MeepMaterialType other)
            {
                if (other == null || this.GetType() != other.GetType())
                {
                    return(false);
                }
                MeepDirectCodingMaterial _other = other as MeepDirectCodingMaterial;

                return((Name == _other.Name) & (MeepCode == _other.MeepCode));
            }
コード例 #4
0
        public override bool Equals(MeepMaterialType other)
        {
            if (other == null || this.GetType() != other.GetType())
            {
                return(false);
            }
            MeepDielectric _other = other as MeepDielectric;

            return((Name == _other.Name)
                   & (VariableName == _other.VariableName)
                   & (Index == _other.Index)
                   & (Mu == _other.Mu)
                   & (Conductivity == _other.Conductivity));
        }
コード例 #5
0
 public MeepGeometricObject(MeepMaterialType material, MeepVector3 center)
 {
     Material = material;
     Center   = center;
 }