RonaldoCMP
ab57790c27
Correction of is_vector and doc text
2020-07-28 19:02:35 +01:00
RonaldoCMP
c10a8b919d
Extensive review of arrays.scad, vectors.scad, common.scad and their regression tests
...
Here is an extensive review of common.scad, vectors.scad, arrays.scad and their regression test codes. The changes were mostly in input data check and format. Some few functions got more changes either to adapt them to the new asserts or because a better (faster, simpler) code was found.
Another change was moving add_scalar from vectors.scad to arrays.scad. It is in fact an array operation. Some few documentation examples and test codes were added. Some function argument names were changed to keep them consistent with the names they have in other similar functions. That name changes were not as extensive as I would like but it is advisable to favor users.
Most, but not all, changed function codes are followed by a comment with a short summary of the changes done. Those comments always start with:
//***
I can eliminate those comments before a merge is done or in a second round.
2020-07-25 20:27:19 +01:00
RonaldoCMP
bdba4c0821
A broad review of input data check and code format
...
Some functions were changed for sake of clarity or better performance.
2020-07-24 22:54:34 +01:00
RonaldoCMP
d2e851ae42
Merge branch 'master' into master
2020-07-24 14:47:25 +01:00
RonaldoCMP
464c65ce8c
Eliminating tabs
2020-07-24 13:30:19 +01:00
RonaldoCMP
88e2fc0f29
Input data check review and some refactoring
...
Some functions have been changed as a consequence of the dat checking review. vector_axis was fully refactored. add_scalar was moved to arrays.scad
2020-07-24 00:10:36 +01:00
Garth Minette
4a37a5dc8e
Added zero=undef/true/false arg to is_vector. Bugfix for vector_axis()
2020-07-21 16:15:02 -07:00
Garth Minette
0be0708c2b
Changed unit(dflt=) to unit(error=)
2020-07-11 23:23:12 -07:00
Garth Minette
dde616dad5
unit() now asserts error for zero-length vector unless dflt= arg is given.
2020-07-10 00:03:55 -07:00
Garth Minette
feba482396
Optimizations for is_vector(), is_matrix(). Added is_finite().
2020-07-06 18:28:35 -07:00
Revar Desmera
53c1e25395
Standardize indention on spaces, not tabs.
2020-05-29 19:04:34 -07:00
Revar Desmera
e32735296c
Various bugfixes found by docs regen.
2020-04-26 04:29:21 -07:00
Revar Desmera
975185e262
Bugfix and optimization for find_noncollinear_points(). Optimized points_are_collinear()
2020-04-02 18:15:43 -07:00
Revar Desmera
6b4fb3184c
Multiple bugfixes for and argument re-arrangement. Added vfloor() and vceil().
2020-03-25 19:50:38 -07:00
Adrian Mariano
72aae0e42c
Expanded sqr() to take lists and removed vsqr()
2020-03-21 09:19:49 -04:00
Revar Desmera
e635755528
Added vsqr(), vnf_centroid(), and vnf_volume()
2020-03-20 22:15:41 -07:00
Revar Desmera
ee30513644
Bugfix for rot
2020-03-03 19:17:14 -08:00
Revar Desmera
07bfcd6a57
Renamed normalize() to unit()
2020-03-02 19:30:20 -08:00
Revar Desmera
af0e285781
Added is_list_of(). Improved is_path() and is_vector() tests.
2020-03-02 13:47:43 -08:00
Revar Desmera
0a298dba99
Added vang()
2019-12-26 21:42:23 -08:00
Revar Desmera
bbabc641da
Removed redundant vquant*() functions. Improved docs."
2019-10-22 17:09:08 -07:00
Revar Desmera
c392741042
Added add_scalar(). Fixed normalize() for [0,0]. Added examples for vector functions.
2019-07-04 23:40:24 -07:00
Revar Desmera
3b0a1a3383
Added spin and anchor to various 2D shapes.
2019-05-29 16:27:35 -07:00
Revar Desmera
f378b70151
Added in range step of 1 to avoid errors.
2019-05-26 22:34:46 -07:00
Revar Desmera
26d16a3187
Split compat.scad out into errors.scad and common.scad
2019-05-15 21:07:27 -07:00
Revar Desmera
b4c8378708
Fixed docs for vector_axis
2019-05-14 19:44:00 -07:00
Revar Desmera
a63e9aca8e
Tweaked vector_axis() and vector_angle() to work with lists of points and vectors.
2019-05-14 19:36:32 -07:00
Revar Desmera
668b6de199
Added vquant(), vquantup(), vquantdn()
2019-05-04 20:11:20 -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
5a16152416
Renamed align to anchor.
2019-04-22 20:55:03 -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