RoadNode.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. Object.defineProperty(i, "__esModule", {value: !0}),
  5. (i.default = class {
  6. constructor() {
  7. (this._value = 0), (this._f = 0), (this._g = 0), (this._h = 0), (this._parent = null);
  8. }
  9. toString() {
  10. return (
  11. "路点像素坐标:(" +
  12. this._px +
  13. "," +
  14. this._py +
  15. "), 路点世界坐标:(" +
  16. this._cx +
  17. "," +
  18. this._cy +
  19. "), 路点平面直角坐标:(" +
  20. this._dx +
  21. "," +
  22. this._dy +
  23. ")"
  24. );
  25. }
  26. get px() {
  27. return this._px;
  28. }
  29. set px(t) {
  30. this._px = t;
  31. }
  32. get py() {
  33. return this._py;
  34. }
  35. set py(t) {
  36. this._py = t;
  37. }
  38. get cx() {
  39. return this._cx;
  40. }
  41. set cx(t) {
  42. this._cx = t;
  43. }
  44. get cy() {
  45. return this._cy;
  46. }
  47. set cy(t) {
  48. this._cy = t;
  49. }
  50. get dx() {
  51. return this._dx;
  52. }
  53. set dx(t) {
  54. this._dx = t;
  55. }
  56. get dy() {
  57. return this._dy;
  58. }
  59. set dy(t) {
  60. this._dy = t;
  61. }
  62. get value() {
  63. return this._value;
  64. }
  65. set value(t) {
  66. this._value = t;
  67. }
  68. get f() {
  69. return this._f;
  70. }
  71. set f(t) {
  72. this._f = t;
  73. }
  74. get g() {
  75. return this._g;
  76. }
  77. set g(t) {
  78. this._g = t;
  79. }
  80. get h() {
  81. return this._h;
  82. }
  83. set h(t) {
  84. this._h = t;
  85. }
  86. get parent() {
  87. return this._parent;
  88. }
  89. set parent(t) {
  90. this._parent = t;
  91. }
  92. });