public void TestPointShapeType() { Cartesian position = new Cartesian(1.0, 2.0, 0.0); PointShape point = new PointShape(1, m_metadata, m_position); Assert.AreEqual(ShapeType.Point, point.ShapeType); }
public void TestPointShapePosition() { PointShape point = new PointShape(1, m_metadata, m_position); Assert.AreEqual(new Cartographic(Constants.RadiansPerDegree, 2.0 * Constants.RadiansPerDegree, 0.0), point.Position); }
/// <summary> /// Initializes a new instance of the <see cref="Point"/> class. /// </summary> /// <param name="point">A PointShape object read from a shapefile.</param> /// <param name="document">The CzmlDocument to write to.</param> /// <param name="color">The points's color.</param> public Point(PointShape point, CzmlDocument document, Color color) : base(document, color) { m_shape = point; }