deadsy / sdfx

A simple CAD package using signed distance functions
MIT License
518 stars 52 forks source link

More public methods for matrix #70

Closed Megidd closed 1 year ago

Megidd commented 1 year ago

To fix #69.

The Get and Set methods are inspired by:

https://github.com/deadsy/sdfx/blob/67b2e6fdf9a9734eb7deeeffcf3510973e5ff14d/vec/v3/v3.go#L174

Megidd commented 1 year ago

Test

I have tested the get & set methods of M44. They work fine :heavy_check_mark:

I didn't test those of M33 and M22. The only possible bug might be a copy-paste-edit one.

Megidd commented 1 year ago

Test

I tested the new API of sdf.NewM44 :heavy_check_mark: But not the rest.

deadsy commented 1 year ago

Merged - I'll probably change the API to take a slice of values rather than a fixed sized array.