XYZ.cs 865 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:XYZ
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/12 10:46:22
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using System.Collections.Generic;
  8. namespace JBIM.Definition
  9. {
  10. public class XYZ
  11. {
  12. public double X { get; set; }
  13. public double Y { get; set; }
  14. public double Z { get; set; }
  15. public override string ToString()
  16. {
  17. return $"{X},{Y},{Z}";
  18. }
  19. }
  20. public class XY
  21. {
  22. public double X { get; set; }
  23. public double Y { get; set; }
  24. }
  25. public class Polygon : List<XYZ>
  26. {
  27. public Polygon()
  28. {
  29. }
  30. public Polygon(IEnumerable<XYZ> collection):base(collection)
  31. {
  32. }
  33. }
  34. }