of

fun of(heading: Double, roll: Double = 0.0, pitch: Double = 0.0): Rotation3D
fun of(heading: Option<Double>, roll: Option<Double>, pitch: Option<Double>): Rotation3D

Returns a Rotation3D while replacing non-finite values for heading, roll and pitch with 0.0.