SimplexRpgEngine icon indicating copy to clipboard operation
SimplexRpgEngine copied to clipboard

math_

Open drewmccluskey opened this issue 6 years ago • 3 comments

Currently Finished Until Further Changes Required

Epsilon

  • ✅math_set_epsilon
  • ✅math_get_epsilon

Random

  • ✅ choose
  • ✅random
  • ✅random_range
  • ✅irandom
  • ✅irandom_range
  • ✅random_set_seed
  • ✅random_get_seed
  • ❌ random_use_old_version
  • ✅randomize

Trig

  • ✅arccos
  • ✅arcsin
  • ✅arctan
  • ✅arctan2
  • ✅sin
  • ✅tan
  • ✅cos
  • ✅darccos
  • ✅darcsin
  • ✅darctan
  • ✅darctan2
  • ✅dsin
  • ✅dtan
  • ✅dcos
  • ✅degtorad
  • ✅radtodeg
  • ✅lengthdir_x
  • ✅lengthdir_y

Rounding

  • ✅round
  • ✅floor
  • ✅frac
  • ✅abs
  • ✅sign
  • ✅ceil
  • ✅max
  • ✅mean
  • ✅median
  • ✅min
  • ✅lerp
  • ✅clamp

Misc

  • ✅exp
  • ✅ln
  • ✅power
  • ✅sqr
  • ✅sqrt
  • ✅log2
  • ✅log10
  • ✅logn
  • ❌ int64

Vector

  • ✅point_direction
  • ✅point_distance
  • ❌ point_distance_3d
  • ✔️dot_product
  • ❌ dot_product_3d
  • ✔️dot_product_normalised
  • ❌dot_product_normalised_3d
  • ✅angle_difference

drewmccluskey avatar Nov 25 '18 06:11 drewmccluskey

Marked functions that won't be ported

lofcz avatar Nov 25 '18 14:11 lofcz

I have been trying to understand dot_product and dot_product_normalized but just don't understand them enough to be able to really write a doc on them. Matej or Cryo, do you guys understand it enough to write one and I can edit the English?

drewmccluskey avatar Jan 23 '19 05:01 drewmccluskey

Will add missing entries (dot_product).

lofcz avatar Jan 23 '19 08:01 lofcz