Adrian Mariano
629d1c00b2
Added linear_solve()
2020-02-28 17:40:52 -05:00
Adrian Mariano
f8fc8cb544
Adds sweep and new version of path_sweep to skin.scad, which probably
...
needs a name change. Adds apply(), apply_list() and
affine_frame_map() to affine.scad. Adds derivative calcluation to
math.scad. Adds path_tangent, path_normal, path_curvature and
path_torsion functions. Adds path_length_fraction().
Fixed bug in reindex_polygon where it randomly reverses a 3d path (due
to clockwise check that is bogus in 3d) and put a check in
polygon_is_clockwise to trap this case.
2020-02-27 17:32:03 -05:00
Revar Desmera
019961aef7
Added dflt= arg to sum(), defaulting to 0.
2020-02-08 21:54:39 -08:00
Revar Desmera
ba032e2f4d
Added NAN, INF, and is_nan().
2020-02-06 22:51:16 -08:00
Revar Desmera
231bb69634
Fixed bug introduced into sum() when summing lists of vectors.
2020-01-09 14:28:54 -08:00
Revar Desmera
48d30fc686
Reorganize math.scad
2020-01-08 20:43:19 -08:00
Adrian Mariano
29b682be96
Added lcm() and gcd() and is_integer() to math.scad. Added a couple
...
3d examples for supershape() that I snagged from
list-comprehension-demo. Added repeat_entries to array.scad. Note
dependence on _sum_preserving_round which is in paths.scad. Also note
it's possible _force_list (added to math.scad) should be exposed, or
placed elsewhere.
2019-12-06 19:27:49 -05:00
Revar Desmera
9f92fe8775
Enhanced lerp() to allow list/range u values to return lists of results.
2019-11-18 21:11:38 -08:00
Revar Desmera
5cca83958f
gaussian_rand() -> gaussian_rands(), log_rand() -> log_rands()
2019-11-06 22:19:19 -08:00
Revar Desmera
50acb3c0b0
Various bugfixes, optimizations, and docs improvements found via regressions.
2019-10-25 15:16:48 -07:00
Revar Desmera
bbabc641da
Removed redundant vquant*() functions. Improved docs."
2019-10-22 17:09:08 -07:00
Revar Desmera
a85ea4ecc9
Added modang() to standardize angles to <-180,180>
2019-09-23 16:38:07 -07:00
Revar Desmera
ccfed6b306
Fixed a typo in det2() docs.
2019-09-19 02:42:42 -07:00
Revar Desmera
e4ecb21217
quant\*() now work on vectors and pointlists.
2019-08-24 11:51:24 -07:00
Revar Desmera
aa8a084d62
Added log2() and cumsum()
2019-08-06 17:12:28 -07:00
Revar Desmera
e8300c5bb6
Fixed indexing of rand_int()
2019-07-18 21:58:41 -07:00
Revar Desmera
56b41b487b
Improved compare_vals() and compare_lists() for heterogenous types.
2019-06-24 15:31:59 -07:00
Adrian Mariano
49365add3c
Added faster and simpler versions of max_index and min_index.
2019-06-23 13:17:04 -04:00
Revar Desmera
62f913a148
Added rand_ints() and shuffle()
2019-05-29 17:42:09 -07:00
Revar Desmera
aadd189c97
Added det2(), det3(), and determinant()
2019-05-27 17:50:04 -07:00
Revar Desmera
4fb825ce14
Bugfix for deltas()
2019-05-26 23:30:44 -07:00
Revar Desmera
11e5406951
Fixed product() for matrices.
2019-05-12 13:41:26 -07:00
Revar Desmera
ba9b7c5b3b
Added product()
2019-05-12 13:32:34 -07:00
Revar Desmera
e946031d99
Added deltas()
2019-05-10 03:00:41 -07:00
Revar Desmera
414f06df86
Fixed scalar approx()
2019-05-04 20:19:35 -07:00
Revar Desmera
55ff7f3a93
Added sqr() and approx()
2019-05-04 20:10:23 -07:00
Revar Desmera
c79e887612
Removed per-file copyright messages in favor of the LICENSE file.
2019-05-03 12:30:20 -07:00
Revar Desmera
cc36235736
Updated copyright years. Split math.scad up. Enabled attach for lots of shapes. Removed backwards compatability.
2019-04-19 17:02:17 -07:00
Revar Desmera
019aae4347
Brought args for rotate_points3d in line with rot() and rotate().
2019-04-19 11:36:38 -07:00
Revar Desmera
1d6aefc867
Removed all uses and incudes. Document all includes needed for each file. Added std.scad include.
2019-04-19 00:25:10 -07:00
Revar Desmera
a46ea27fca
Changed all BOSL references to BOSL2.
2019-04-18 23:45:46 -07:00
Revar Desmera
6b0e796462
Renamed all V_ constants. Removed ALIGN_ constants.
2019-04-18 23:32:17 -07:00
Revar Desmera
08711565e7
Removed deprecations.
2019-04-18 21:16:10 -07:00
Revar Desmera
96739c3ea0
Added convex_hull()
2019-04-16 15:34:54 -07:00
Revar Desmera
fde93d9991
Added PHI constant.
2019-04-12 00:08:56 -07:00
Revar Desmera
54d6ca2bd0
Added gaussian_rand() and log_rand().
2019-04-10 15:53:40 -07:00
Revar Desmera
b7e3644df3
Fixed compare_vals for lists with single lists.
2019-04-08 20:51:29 -07:00
Revar Desmera
a84dec40fc
Fixed rotate_points3d() and vector_axis() for un-normalized co-axial vectors.
2019-04-08 18:49:34 -07:00
Revar Desmera
670c47ca86
Added enumerate() and sortidx()
2019-04-04 20:27:01 -07:00
Revar Desmera
843268e9b8
Fixes for bugs found my math test suite.
2019-04-04 00:37:21 -07:00
Revar Desmera
e435660f11
Fixed recursive comparison of lists.
2019-04-03 13:54:48 -07:00
Revar Desmera
cc37b39344
Added matrix_transpose()
2019-04-02 19:07:13 -07:00
Revar Desmera
6f99eb7925
Fix dropped section header.
2019-04-01 23:44:12 -07:00
Revar Desmera
229b9e1e3c
Optimizations to compare_vals()
2019-04-01 23:40:15 -07:00
Revar Desmera
a4c4738f80
Fixed rotate_points3d(from,to)
2019-04-01 18:55:48 -07:00
Revar Desmera
d1a9d98033
Made rotate_points3d() accept axis or from/to args.
2019-03-31 18:43:54 -07:00
Revar Desmera
282207701a
Added replist()
2019-03-31 04:06:51 -07:00
Revar Desmera
f3c6fbc593
Commented out top-level variables in math.scad, due to pathological OpenSCAD behavious.
2019-03-31 03:21:07 -07:00
Revar Desmera
d7320b7c0a
More select and posmod optimizations.
2019-03-31 00:03:02 -07:00
Revar Desmera
015c34d637
Large optimization to select()
2019-03-30 22:39:44 -07:00