MapAround.Geometry.Coordinate3D.Coordinate3D C# (CSharp) Method

Coordinate3D() private method

Initializes a new instance of MapAround.Geometry.Coordinate3D.
private Coordinate3D ( double coords ) : System
coords double An array containing coordinate values
return System
        internal Coordinate3D(double[] coords)
        {
            if (coords.Length == 2)
            {
                _x = coords[0];
                _y = coords[1];
                _z = 0;
                return;
            }

            if (coords.Length == 3)
            {
                _x = coords[0];
                _y = coords[1];
                _z = coords[2];
                return;
            }

            throw new NotSupportedException("Allowed objects with two or three coordinates");

        }
    }

Same methods

Coordinate3D::Coordinate3D ( double x, double y ) : System
Coordinate3D::Coordinate3D ( double x, double y, double z ) : System