Hipparchus-Math / hipparchus

An efficient, general-purpose mathematics components library in the Java programming language
Apache License 2.0
139 stars 41 forks source link

Fixed issue 244 : Add field version of Blendable interface method + field version of smoothstep function #247

Closed VincentCucchietti closed 1 year ago

VincentCucchietti commented 1 year ago

Hi everyone,

Opening this merge request to close issue #244.

I added a FieldBlendable class (equivalent of Blendable) and implemented it in FieldMatrix and FieldVector3D.

Also added the ability to create FieldSmoothStepFunction from the SmoothStepFactory class as well as the possibility to create quadratic smoothstep function (normal and field version). It should be possible to generalize the construction of even smoothstep functions but as it should not break the API in the future, I used the simplest and fastest option available.

Finally, I added associated tests for coverage.

Cheers, Vincent