コード例 #1
0
ファイル: DikeProfileData.cs プロジェクト: Deltares/Riskeer
 /// <summary>
 /// Initializes a new instance of the <see cref="DikeProfileData"/> class.
 /// </summary>
 public DikeProfileData()
 {
     Orientation       = double.NaN;
     DamHeight         = double.NaN;
     DikeHeight        = double.NaN;
     ForeshoreGeometry = new RoughnessPoint[0];
     DikeGeometry      = new RoughnessPoint[0];
 }
コード例 #2
0
        public void Constructor_ExpectedValues()
        {
            // Setup
            const double roughness = 1.23456789;
            var          point     = new Point2D(1.1826, 2.2692);

            // Call
            var roughnessPoint = new RoughnessPoint(point, roughness);

            // Assert
            Assert.AreEqual(new Point2D(1.18, 2.27), roughnessPoint.Point);
            Assert.AreEqual(2, roughnessPoint.Roughness.NumberOfDecimalPlaces);
            Assert.AreEqual(roughness, roughnessPoint.Roughness, roughnessPoint.Roughness.GetAccuracy());
        }
コード例 #3
0
 public SerializableRoughnessPoint(RoughnessPoint point)
 {
     x         = point.Point.X;
     y         = point.Point.Y;
     roughness = point.Roughness;
 }