tfep.app.mixedmaf.is_collinear

tfep.app.mixedmaf.is_collinear(points, tol=0.01)[source]

Check that three points are not collinear.

Parameters:
  • points (torch.Tensor) – Shape (batch_size, 3, 3). The three points.

  • tol (float) – Numerical tolerance for checking collinearity.

Returns:

is_collinearTrue if three points are collinear. False otherwise.

Return type:

bool