Function simple_fcl::distance [] [src]

pub fn distance(
    model_a: &Model,
    rotation_a: &Rotation3f,
    translation_a: &Translation3f,
    model_b: &Model,
    rotation_b: &Rotation3f,
    translation_b: &Translation3f,
    options: &DistanceOptions
) -> Option<f64>

Perform distance check between two models transformed in space.

Each model has a translation and rotation applied to it. So the model center is moved by the translation, while the model is rotated around its center.

The returned value is None in case of collision, otherwise it's the distance.