axisAngle

fun axisAngle(axis: Direction, degrees: Float): Rotation

degrees of rotation about axis (normalized for you), right-hand rule. A zero-length axis names no rotation, so Identity comes back rather than a NaN that would silently hide the entity.