Function simple_fcl::distance_points [] [src]

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

Determine closest points 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 together with the points between which the distance was achieved.