You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, thanks for this library. I've really enjoyed working with it so far.
I've noticed that there is no scalar multiplication method for quaternions. It's trivial to implement (see Real-Time Rendering 4th Edition p. 77) so imo it should be provided (either as a mul overload or its own method), unless there is a specific reason for its absence.
For now I'm making do with an extension function:
fun Quaternionf.scalarMul(s:Float): Quaternionf {
this.x *= s
this.y *= s
this.z *= s
this.w *= s
returnthis
}
The text was updated successfully, but these errors were encountered:
Hi,
first of all, thanks for this library. I've really enjoyed working with it so far.
I've noticed that there is no scalar multiplication method for quaternions. It's trivial to implement (see Real-Time Rendering 4th Edition p. 77) so imo it should be provided (either as a
mul
overload or its own method), unless there is a specific reason for its absence.For now I'm making do with an extension function:
The text was updated successfully, but these errors were encountered: