Commit Graph

29 Commits

Author SHA1 Message Date
Starbeamrainbowlabs
3f48832fff
Merge branch 'main' into VorTechnix 2021-11-07 14:31:01 +00:00
Starbeamrainbowlabs
9d7000baed
Add circular spirals :D 2021-10-31 16:59:52 +00:00
VorTechnix
cff58792bf Merge branch 'main' into VorTechnix 2021-08-05 10:43:00 -07:00
VorTechnix
4cf30a0e74 updated @return on sort 2021-08-05 10:41:35 -07:00
Starbeamrainbowlabs
c48e9f2ab8
Vector3.min, Vector3.max: allow arguments to be numbers 2021-08-04 21:23:01 +01:00
Starbeamrainbowlabs
db830c6633
Implement slope constraint for //layers, but it isn't tested yet 2021-08-04 01:41:51 +01:00
Starbeamrainbowlabs
0fef39d707
Vector3: Implement __concat operator overloading
Now you can do this:

local v = wea.Vector3.new(3, 4, 5)
print(v.."yay")
2021-07-15 02:18:21 +01:00
Starbeamrainbowlabs
40173b2647
Vector3: default to 0 for unspecified args 2021-07-04 23:30:29 +01:00
Starbeamrainbowlabs
cae75ec5a2
Add moar comments 2021-07-03 00:42:19 +01:00
Starbeamrainbowlabs
1984c67295
Vector3, Face, Mesh: unconditionally return class 2021-06-28 01:00:38 +01:00
Starbeamrainbowlabs
f32d8588e0
Add Mesh & Face classes for #59
Together, these classes provide a way to represent a mesh of faces
generated from the Minetest world. This way, the generation of a mesh
can be abstracted away from any potential output file writers, thereby
allowing for multiple different output file formats to be supported.
2021-06-26 22:03:55 +01:00
Starbeamrainbowlabs
65c07d59ea
Vector3: add sort, is_contained, expand_region, mean, min, and max 2021-06-26 17:48:39 +01:00
Starbeamrainbowlabs
91b77c981b
Vector3: add abs 2021-06-26 17:06:53 +01:00
Starbeamrainbowlabs
88214aef57
Vector3: add min_component, max_component 2021-06-26 17:02:35 +01:00
Starbeamrainbowlabs
0a3680aa7d
Vector3: add unit / normalise 2021-06-26 16:56:26 +01:00
Starbeamrainbowlabs
c76a049286
Vector3: tweak 2021-06-26 16:47:22 +01:00
Starbeamrainbowlabs
112bb96e99
Vector3: add equals, equality operator 2021-06-26 16:28:39 +01:00
Starbeamrainbowlabs
cfa086ce46
Vector3: add dot product 2021-06-26 15:47:53 +01:00
Starbeamrainbowlabs
dc5645cfeb
Vector3: add set_to 2021-06-26 15:43:42 +01:00
Starbeamrainbowlabs
133cae587c
Vector3: add move_towards 2021-06-26 15:39:47 +01:00
Starbeamrainbowlabs
773e6354ad
Vector3: add limit_to 2021-06-26 15:32:47 +01:00
Starbeamrainbowlabs
6d0447a02f
Vector3: add clone 2021-06-26 15:23:16 +01:00
Starbeamrainbowlabs
7549b0eaea
Vector3: add length, length_squared, sqrt 2021-06-26 15:15:32 +01:00
Starbeamrainbowlabs
cde3c3360c
Vector3: add snap_to 2021-06-26 14:44:40 +01:00
Starbeamrainbowlabs
8ae0d92e3d
Vector3/tests: flip assert orderings 2021-06-26 14:40:14 +01:00
Starbeamrainbowlabs
57df2d045f
Vector3: add area 2021-06-26 14:26:40 +01:00
Starbeamrainbowlabs
1e1112c34a
Vector3: Add round 2021-06-26 14:22:26 +01:00
Starbeamrainbowlabs
06e19248c7
Vector3: add floor/ceil 2021-06-26 14:19:18 +01:00
Starbeamrainbowlabs
9d197aefd2
Start implementing vector3.
Currently we have the 4 basic operations down, plus tostring.
2021-06-26 14:10:28 +01:00