/// <summary>
        /// Initializes new instance of <see cref="LineGeometry"/>.
        /// </summary>
        /// <param name="positions">The collection of <see cref="GeometryPosition"/> that make up the line.</param>
        /// <param name="properties">The <see cref="GeometryProperties"/> associated with the geometry.</param>
        public LineGeometry(IEnumerable <GeometryPosition> positions, GeometryProperties properties) : base(properties)
        {
            Argument.AssertNotNull(positions, nameof(positions));

            Positions = positions.ToArray();
        }
        /// <summary>
        /// Initializes new instance of <see cref="MultiPointGeometry"/>.
        /// </summary>
        /// <param name="points">The collection of inner points.</param>
        /// <param name="properties">The <see cref="GeometryProperties"/> associated with the geometry.</param>
        public MultiPointGeometry(IEnumerable <PointGeometry> points, GeometryProperties properties) : base(properties)
        {
            Argument.AssertNotNull(points, nameof(points));

            Points = points.ToArray();
        }
        /// <summary>
        /// Initializes new instance of <see cref="MultiLineGeometry"/>.
        /// </summary>
        /// <param name="lines">The collection of inner lines.</param>
        /// <param name="properties">The <see cref="GeometryProperties"/> associated with the geometry.</param>
        public MultiLineGeometry(IEnumerable <LineGeometry> lines, GeometryProperties properties) : base(properties)
        {
            Argument.AssertNotNull(lines, nameof(lines));

            Lines = lines.ToArray();
        }
예제 #4
0
        /// <summary>
        /// Initializes new instance of <see cref="PolygonGeometry"/>.
        /// </summary>
        /// <param name="rings">The collection of rings that make up the polygon, first ring is the outer ring others are inner rings.</param>
        /// <param name="properties">The <see cref="GeometryProperties"/> associated with the geometry.</param>
        public PolygonGeometry(IEnumerable <LineGeometry> rings, GeometryProperties properties) : base(properties)
        {
            Argument.AssertNotNull(rings, nameof(rings));

            Rings = rings.ToArray();
        }
        /// <summary>
        /// Initializes new instance of <see cref="CollectionGeometry"/>.
        /// </summary>
        /// <param name="geometries">The collection of inner geometries.</param>
        /// <param name="properties">The <see cref="GeometryProperties"/> associated with the geometry.</param>
        public CollectionGeometry(IEnumerable <Geometry> geometries, GeometryProperties properties) : base(properties)
        {
            Argument.AssertNotNull(geometries, nameof(geometries));

            Geometries = geometries.ToArray();
        }