setFromAxis method
Set Quant from this axis and angle in radians
Implementation
Quat setFromAxis(Vec3 axis, double rad) {
axis.normalize();
rad = rad * 0.5;
double s = math.sin( rad );
x = s * axis.x;
y = s * axis.y;
z = s * axis.z;
w = math.cos( rad );
return this;
}