Davisdude Mlib Versions Save

A math and collisions library for Lua.

0.10.0

8 years ago

0.9.3

9 years ago

As always, see Changes.txt

0.9.1

9 years ago

Also added some demonstrations and some more statistics functions.

0.9.0

9 years ago

See Changes.txt for more.

1.0.0.3

9 years ago

That's it.

1.0.0.2

9 years ago

1.0.0.2

Added:

Removed:

  • Ability to use a direction for Math.GetAngle's 5th argument instead of having a third point. See Fixed for more.

Changed:

  • Changed README.md for clarity and consistency.
  • Updated spec.lua
  • See Fixed for more.

Fixed:

  • Circle.IsSegmentSecant now properly accounts for chords actually being chords, and not secants.
  • Circle.CircleIntersects now can return 'Colinear' or 'Equal' if the circles have same x and y but different radii (Colinear) or are exactly the same (Equal).
  • Statistics.GetMode now returns a table with the modes, and the second argument as the number of times they appear.
  • Math.GetRoot now returns the negative number as a second argument.
  • Math.GetPercentOfChange now works for 0 to 0 (previously false).
  • Math.GetAngle now takes only three points and no direction option.
  • Typos in Shape.CheckCollisions and Shape.Remove.
  • Fixed nil problems in Shape.CheckCollisions.
  • Improved readablility and DRYness of Shape.CheckCollisions.
  • Bugs in Shape.Remove and Shape.CheckCollisions regarding passing tables as arguments.

TODO:

  • Add:
    • Frequency
    • Binomial Probability
    • Standard Deviation
    • Conditional Probability

1.0.0.1

10 years ago

1.0.0.1

Changed:

  • Changes.txt now expanded to include short excertps from all previous

commits.

  • Changed release number from 3.0.0 to 1.0.0.1
  • Math.Round now can round to decimal places as the second argument.
  • Commented unnecessary call of Segment.CheckPoint in Polygon.LineIntersects.
  • Polygon.LineIntersects now returns where the lines intersect.
    • false if not intersection.
    • A table with all of the intersections { { px, py } }
  • Same with Polygon.PolygonIntersects, Polygon.CircleIntersects,

Fixed:

  • Error with GetSlope being called incorrectly.
  • README.md Line.GetPerpendicularSlope misdirection.
  • Same with Line.GetPerpendicularBisector, Line.Segment.GetIntersection,

Circle.IsLineSecant, Circle.IsSegmentSecant, Statistics.GetMean, Median,

Mode, and Range, and Shape:Remove, and fixed the naming for

Shape:CheckCollisions and Shape:Remove.

  • Clarified README.md
  • Made util SortWithReferences local.
  • Errors caused by local functions.

TODO:

  • Add:
    • Frequency
    • Binomial Probability
    • Standard Deviation
    • Conditional Probability

3.0.0

10 years ago

3.0.0

ADDED:

  • Added function GetSignedArea.

REMOVED:

  • Removed drawing functions.
  • Removed MLib.Line.Functions entirely.

CHANGED:

  • Changed all the names to CamelCase.
  • Changed module name to MLib.
  • Changed return order of GetPerpendicualrBisector from Slope, Midpoint to Midpoint, Slope.
  • Changed returned string of MLib.circle.isLineSecant to be upper-case.
  • Changed IsPrime to accept only one number at a time.
  • Changed NewShape's type to Capitals.

Related to code:

  • Added more accuarate comments.
  • Made code more DRY.
  • Made code monkey-patchable and saved space (by declaring all functions as local values then inserted them into a large table.

TODO:

  • Make LineIntersectsPolygon return where intersection occurs.
  • Ditto with PolygonIntersectsPolygon.
  • Add:
    • Frequency
    • Binomial Probability
    • Standard Deviation
    • Conditional Probability

0.2.0.2

10 years ago

Also updated spec.lua, but it's still untested, so it's not official.

2.0.1

10 years ago

More demos coming later, hopefully.