コード例 #1
0
        public void LineSegment_Translate_ShouldTranslateAsVector()
        {
            LineSegment lineSegment = new LineSegment(Point.MakePointWithInches(1, 1, 1));
            Translation translation = new Translation(new Vector(Point.MakePointWithInches(0, 1, 0)));

            lineSegment.Translate(translation).Should().Be(new LineSegment(Point.MakePointWithInches(0, 1, 0), Point.MakePointWithInches(1, 2, 1)));
        }