pub fn look_to_affine3(
eye: DVec3,
dir: DVec3,
up: DVec3,
fwd_axis: DVec3,
up_axis: DVec3,
) -> DAffine3Expand description
Returns an DAffine3 model transform from eye, forward direction, and up.
fwd_axis and up_axis are the object’s local forward and up axes. The rotation
maps fwd_axis onto dir and up_axis onto up. The translation of the returned
transform is eye.
§Panics
Will panic if any argument is not normalized, if fwd_axis and up_axis are not
perpendicular, or if dir and up are parallel, when glam_assert is enabled.