Commit graph

21 commits

Author SHA1 Message Date
5d27ba9ccb
Vector3.new: add test to make sure Vector3.new() returns (0, 0, 0) 2021-08-04 21:24:36 +01:00
c48e9f2ab8
Vector3.min, Vector3.max: allow arguments to be numbers 2021-08-04 21:23:01 +01:00
1930b8c64d
tests/new: fix Vector3 tests 2021-07-15 02:19:42 +01:00
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
65c07d59ea
Vector3: add sort, is_contained, expand_region, mean, min, and max 2021-06-26 17:48:39 +01:00
91b77c981b
Vector3: add abs 2021-06-26 17:06:53 +01:00
88214aef57
Vector3: add min_component, max_component 2021-06-26 17:02:35 +01:00
0a3680aa7d
Vector3: add unit / normalise 2021-06-26 16:56:26 +01:00
112bb96e99
Vector3: add equals, equality operator 2021-06-26 16:28:39 +01:00
cfa086ce46
Vector3: add dot product 2021-06-26 15:47:53 +01:00
dc5645cfeb
Vector3: add set_to 2021-06-26 15:43:42 +01:00
133cae587c
Vector3: add move_towards 2021-06-26 15:39:47 +01:00
773e6354ad
Vector3: add limit_to 2021-06-26 15:32:47 +01:00
6d0447a02f
Vector3: add clone 2021-06-26 15:23:16 +01:00
7549b0eaea
Vector3: add length, length_squared, sqrt 2021-06-26 15:15:32 +01:00
cde3c3360c
Vector3: add snap_to 2021-06-26 14:44:40 +01:00
8ae0d92e3d
Vector3/tests: flip assert orderings 2021-06-26 14:40:14 +01:00
57df2d045f
Vector3: add area 2021-06-26 14:26:40 +01:00
1e1112c34a
Vector3: Add round 2021-06-26 14:22:26 +01:00
06e19248c7
Vector3: add floor/ceil 2021-06-26 14:19:18 +01:00
9d197aefd2
Start implementing vector3.
Currently we have the 4 basic operations down, plus tostring.
2021-06-26 14:10:28 +01:00