Author Topic: [AcGe(11)] XDrx API Matrix and Vector and Geom...mathematical geometry Function  (Read 475 times)

0 Members and 1 Guest are viewing this topic.

xdcad

  • Swamp Rat
  • Posts: 514
For matrix functions and vector functions, please refer to the ARX help file. The parameter usage is basically the same.

https://www.theswamp.org/index.php?topic=58887.0

Code - Auto/Visual Lisp: [Select]
  1. ;54 matrix function
  2.  
  3. 1.xdrx_matrix->ads
  4. 2.xdrx_matrix->local
  5. 3.xdrx_matrix_align
  6. 4.xdrx_matrix_aligncoordsys
  7. 5.xdrx_matrix_aligncoordsystem
  8. 6.xdrx_matrix_block2wcs
  9. 7.xdrx_matrix_dcs2ucs
  10. 8.xdrx_matrix_dcs2wcs
  11. 9.xdrx_matrix_det
  12. 10.xdrx_matrix_ecs2wcs
  13. 11.xdrx_matrix_getangleandaxis
  14. 12.xdrx_matrix_getcoordsystem
  15. 13.xdrx_matrix_getmirrorplane
  16. 14.xdrx_matrix_identity
  17. 15.xdrx_matrix_image2wcs
  18. 16.xdrx_matrix_inverse
  19. 17.xdrx_matrix_isequal
  20. 18.xdrx_matrix_ismirror
  21. 19.xdrx_matrix_isscaledortho
  22. 20.xdrx_matrix_issingular
  23. 21.xdrx_matrix_isuniscaledortho
  24. 22.xdrx_matrix_isunit
  25. 23.xdrx_matrix_ms2ps
  26. 24.xdrx_matrix_norm
  27. 25.xdrx_matrix_plane2wcs
  28. 26.xdrx_matrix_postmultby
  29. 27.xdrx_matrix_premultby
  30. 28.xdrx_matrix_product
  31. 29.xdrx_matrix_product1
  32. 30.xdrx_matrix_ps2ms
  33. 31.xdrx_matrix_rotate3d
  34. 32.xdrx_matrix_scalefactor
  35. 33.xdrx_matrix_setcoordsystem
  36. 34.xdrx_matrix_setmirror
  37. 35.xdrx_matrix_setprojection
  38. 36.xdrx_matrix_setrotation
  39. 37.xdrx_matrix_setscale
  40. 38.xdrx_matrix_settoplanetoworld
  41. 39.xdrx_matrix_settoworldtoplane
  42. 40.xdrx_matrix_settranslation
  43. 41.xdrx_matrix_transcoordsys
  44. 42.xdrx_matrix_transcoordsystem
  45. 43.xdrx_matrix_translation
  46. 44.xdrx_matrix_transpose
  47. 45.xdrx_matrix_ucs2dcs
  48. 46.xdrx_matrix_ucs2wcs
  49. 47.xdrx_matrix_ucsview
  50. 48.xdrx_matrix_wcs2block
  51. 49.xdrx_matrix_wcs2dcs
  52. 50.xdrx_matrix_wcs2plane
  53. 51.xdrx_matrix_wcs2ucs
  54. 52.xdrx_matrix<-ads
  55. 53.xdrx_matrix<-nentsel
  56. 54.xdrx_matrix<-ssnamex

Code - Auto/Visual Lisp: [Select]
  1. ;
  2. 35 vector function:
  3.  
  4. 1.xdrx_vector_angle
  5. 2.xdrx_vector_angleonplane
  6. 3.xdrx_vector_angleto
  7. 4.xdrx_vector_arbitraryaxis
  8. 5.xdrx_vector_crossproduct
  9. 6.xdrx_vector_divide
  10. 7.xdrx_vector_dotproduct
  11. 8.xdrx_vector_iscodirectional
  12. 9.xdrx_vector_iscodirectionalto
  13. 10.xdrx_vector_isequal
  14. 11.xdrx_vector_isequalto
  15. 12.xdrx_vector_isparallel
  16. 13.xdrx_vector_isparallelto
  17. 14.xdrx_vector_isperpendicular
  18. 15.xdrx_vector_isperpendicularto
  19. 16.xdrx_vector_isunitlength
  20. 17.xdrx_vector_iszerolength
  21. 18.xdrx_vector_largestelement
  22. 19.xdrx_vector_length
  23. 20.xdrx_vector_lengthsqrd
  24. 21.xdrx_vector_mirror
  25. 22.xdrx_vector_negate
  26. 23.xdrx_vector_normal
  27. 24.xdrx_vector_normalize
  28. 25.xdrx_vector_orthoproject
  29. 26.xdrx_vector_perpvector
  30. 27.xdrx_vector_product
  31. 28.xdrx_vector_project
  32. 29.xdrx_vector_rotate
  33. 30.xdrx_vector_rotateto
  34. 31.xdrx_vector_settoproduct
  35. 32.xdrx_vector_settosum
  36. 33.xdrx_vector_sum
  37. 34.xdrx_vector_transform
  38. 35.xdrx_vector_transformby

Code - Auto/Visual Lisp: [Select]
  1. ;math function
  2.  
  3. 1.xdrx_math_abs
  4. 2.xdrx_math_acos
  5. 3.xdrx_math_acosh
  6. 4.xdrx_math_anglebetween
  7. 5.xdrx_math_asin
  8. 6.xdrx_math_asinh
  9. 7.xdrx_math_atan
  10. 8.xdrx_math_atan2
  11. 9.xdrx_math_atanh
  12. 10.xdrx_math_cbrt
  13. .11xdrx_math_ceil
  14. 12.xdrx_math_chgsign
  15. 13.xdrx_math_clamp
  16. 14.xdrx_math_copysign
  17. 15.xdrx_math_cos
  18. 16.xdrx_math_cosh
  19. 17.xdrx_math_crossproduct
  20. 18.xdrx_math_cullnumbers
  21. 19.xdrx_math_degtodms
  22. 20.xdrx_math_degtor
  23. 21.xdrx_math_difference
  24. 22.xdrx_math_div
  25. 23.xdrx_math_dmstodeg
  26. 24.xdrx_math_dmstor
  27. 25.xdrx_math_dotproduct
  28. 26.xdrx_math_double->hex
  29. 27.xdrx_math_dtr
  30. 28.xdrx_math_e
  31. 29.xdrx_math_equal
  32. 30.xdrx_math_exp
  33. 31.xdrx_math_fact
  34. 32.xdrx_math_floor
  35. 33.xdrx_math_fmod
  36. 34.xdrx_math_frexp
  37. 35.xdrx_math_gcd
  38. 36.xdrx_math_hex->double
  39. 37.xdrx_math_hexstr2double
  40. 38.xdrx_math_hypot
  41. 39.xdrx_math_interp
  42. 40.xdrx_math_isprime
  43. 41.xdrx_math_lcm
  44. 42.xdrx_math_ldexp
  45. 43.xdrx_math_length
  46. 44.xdrx_math_log
  47. 45.xdrx_math_log10
  48. 46.xdrx_math_log2
  49. 47.xdrx_math_long_divide
  50. 48.xdrx_math_max
  51. 49.xdrx_math_mean
  52. 50.xdrx_math_median
  53. 51.xdrx_math_min
  54. 52.xdrx_math_mode
  55. 53.xdrx_math_modf
  56. 54.xdrx_math_moment
  57. 55.xdrx_math_movebit
  58. 56.xdrx_math_negate
  59. 57.xdrx_math_normalize
  60. 58.xdrx_math_orthogonalp
  61. 59.xdrx_math_orthonormalp
  62. 60.xdrx_math_parallelp
  63. 61.xdrx_math_parameterize
  64. 62.xdrx_math_permute
  65. 63.xdrx_math_perpendicularp
  66. 64.xdrx_math_perpendicularto
  67. 65.xdrx_math_phi
  68. 66.xdrx_math_pi
  69. 67.xdrx_math_pow
  70. 68.xdrx_math_product
  71. 69.xdrx_math_quadratic
  72. 70.xdrx_math_quotient
  73. 71.xdrx_math_rand
  74. 72.xdrx_math_rand1
  75. 73.xdrx_math_random
  76. 74.xdrx_math_range
  77. 75.xdrx_math_rgauss
  78. 76.xdrx_math_righthandp
  79. 77.xdrx_math_round
  80. 78.xdrx_math_roundto
  81. 79.xdrx_math_rtd
  82. 80.xdrx_math_rtodeg
  83. 81.xdrx_math_rtodms
  84. 82.xdrx_math_scale
  85. 83.xdrx_math_sign
  86. 84.xdrx_math_sin
  87. 85.xdrx_math_sinh
  88. 86.xdrx_math_sortnumbers
  89. 87.xdrx_math_sqrt
  90. 88.xdrx_math_sum
  91. 89.xdrx_math_tan
  92. 90.xdrx_math_tanh
  93. 91.xdrx_math_tinyp
  94. 92.xdrx_math_tripleproduct
  95. 93.xdrx_math_trunc
  96. 94.xdrx_math_unitize
  97. 95.xdrx_math_unitp
  98. 96.xdrx_math_vector
  99. 97.xdrx_math_wedgeproduct
  100. 98.xdrx_math_zerop
  101.  

Code - Auto/Visual Lisp: [Select]
  1. ;AcGe Function
  2.  
  3. 1.xdge::constructor
  4. 2.xdge::copy
  5. 3.xdge::entity:2d->3d
  6. 4.xdge::entity:3d->2d
  7. 5.xdge::entity:make
  8. 6.xdge::entity:mirror
  9. 7.xdge::entity:rotateby
  10. 8.xdge::entity:scaleby
  11. 9.xdge::entity:transformby
  12. 10.xdge::entity:translateby
  13. 11.xdge::free
  14. 12.xdge::getpropertyvalue
  15. 13.xdge::help
  16. 14.xdge::isequalto
  17. 15.xdge::isgeentity
  18. 16.xdge::iskindof
  19. 17.xdge::method
  20. 18.xdge::mirror
  21. 19.xdge::numentities
  22. 20.xdge::setpropertyvalue
  23. 21.xdge::type
  24.  

Code - Auto/Visual Lisp: [Select]
  1. ;Geom Function
  2.  
  3. 1.xdrx_geom_3p2arc
  4. 2.xdrx_geom_arc2poly
  5. 3.xdrx_geom_arcdiv
  6. 4.xdrx_geom_bpoly
  7. 5.xdrx_geom_bulge
  8. 6.xdrx_geom_clipboundary
  9. 7.xdrx_geom_getcirdivnum
  10. 8.xdrx_geom_iscodirectional
  11. 9.xdrx_geom_isinsidecurve
  12. 10.xdrx_geom_isparallel
  13. 11.xdrx_geom_isparallel-p
  14. 12.xdrx_geom_isperp
  15. 13.xdrx_geom_isperp-p
  16. 14.xdrx_geom_makeparabola
  17. 15.xdrx_geom_pixel_unit
  18. 16.xdrx_geom_poly2arc
  19. 17.xdrx_geom_relation
  20. 18.xdrx_geom_searchoutline
  21. 19.xdrx_geom_searchoutline1
  22. 20.xdrx_geom_searchregions
  23. 21.xdrx_geom_searchregions1
  24. 22.xdrx_geom_searchregions2
  25. 23.xdrx_geom_topology_relation
  26. 24.xdrx_geom_traceboundary
  27. 25.xdrx_geom_xtrim
  28.  
  29. 26.xdrx_planarent_getcoordsystem
  30. 27.xdrx_planarent_intersect
  31. 28.xdrx_planarent_iscoplanar
  32. 29.xdrx_planarent_isparallel
  33. 30.xdrx_planarent_isperpendicular
  34.  

Code - Auto/Visual Lisp: [Select]
  1. ; point and points function
  2.  
  3. 1.xdrx_point_convert2d
  4. 2.xdrx_point_dist2line
  5. 3.xdrx_point_getrelationatclosedcurve
  6. 4.xdrx_point_isinside
  7. 5.xdrx_point_isinside1
  8. 6.xdrx_point_ison
  9. 7.xdrx_point_ison1
  10. 8.xdrx_point_make
  11. 9.xdrx_point_orthoproject
  12. 10.xdrx_point_project
  13. 11.xdrx_point_transform
  14. 12.xdrx_pointmonitor
  15. 13.xdrx_points->circle
  16. 14.xdrx_points->ellipse
  17. 15.xdrx_points->filterbox
  18. 16.xdrx_points->fitcircle
  19. 17.xdrx_points->fitellipse
  20. 18.xdrx_points->fitline
  21. 19.xdrx_points->line
  22. 20.xdrx_points->offsetbox
  23. 21.xdrx_points_area
  24. 22.xdrx_points_boundingboxintersect
  25. 23.xdrx_points_boundingboxintersectwith
  26. 24.xdrx_points_box
  27. 25.xdrx_points_centroid
  28. 26.xdrx_points_chull
  29. 27.xdrx_points_closestatdist
  30. 28.xdrx_points_closestpair
  31. 29.xdrx_points_closestpairs
  32. 30.xdrx_points_compress
  33. 31.xdrx_points_connect
  34. 32.xdrx_points_dcs2ucs
  35. 33.xdrx_points_dcs2wcs
  36. 34.xdrx_points_delaunay
  37. 35.xdrx_points_ecs2ucs
  38. 36.xdrx_points_ecs2wcs
  39. 37.xdrx_points_ghull
  40. 38.xdrx_points_ghull1
  41. 39.xdrx_points_hullwidth
  42. 40.xdrx_points_iscolinear
  43. 41.xdrx_points_isinside
  44. 42.xdrx_points_isselfintersect
  45. 43.xdrx_points_matrix
  46. 44.xdrx_points_maxareabox
  47. 45.xdrx_points_maxdiameter
  48. 46.xdrx_points_maxperimeterbox
  49. 47.xdrx_points_mhull
  50. 48.xdrx_points_minareabox
  51. 49.xdrx_points_mincircle
  52. 50.xdrx_points_minmaxpoint
  53. 51.xdrx_points_minperimeterbox
  54. 52.xdrx_points_mirror
  55. 53.xdrx_points_move
  56. 54.xdrx_points_nearpt
  57. 55.xdrx_points_normal
  58. 56.xdrx_points_offset
  59. 57.xdrx_points_orthoproject
  60. 58.xdrx_points_project
  61. 59.xdrx_points_projection
  62. 60.xdrx_points_qhull
  63. 61.xdrx_points_rotate
  64. 62.xdrx_points_scale
  65. 63.xdrx_points_selfintersects
  66. 64.xdrx_points_sortoncurve
  67. 65.xdrx_points_transform
  68. 66.xdrx_points_transformby
  69. 67.xdrx_points_ucs2dcs
  70. 68.xdrx_points_ucs2ecs
  71. 69.xdrx_points_ucs2wcs
  72. 70.xdrx_points_union
  73. 71.xdrx_points_union1
  74. 72.xdrx_points_wcs2dcs
  75. 73.xdrx_points_wcs2ecs
  76. 74.xdrx_points_wcs2ucs
  77. 75.xdrx_points_x_order
  78. 76.xdrx_points_y_order
  79. 77.xdrx_pointsbox
  80. 78.xdrx_pointsmirror
  81. 79.xdrx_pointsmove
  82. 80.xdrx_pointsoffset
  83. 81.xdrx_pointsrotate
  84. 82.xdrx_pointsscale
« Last Edit: December 12, 2023, 11:09:32 AM by xdcad »
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
https://github.com/xdcad
https://sourceforge.net/projects/xdrx-api-zip/
http://bbs.xdcad.net