psychopy.tools.mathtools.normalMatrix

psychopy.tools.mathtools.normalMatrix(modelMatrix, out=None, dtype=None)[source]

Get the normal matrix from a model matrix.

Parameters:
  • modelMatrix (array_like) – 4x4 homogeneous model matrix.

  • out (ndarray, optional) – Optional output array. Must be same shape and dtype as the expected output if out was not specified.

  • dtype (dtype or str, optional) – Data type for computations can either be ‘float32’ or ‘float64’. If out is specified, the data type of out is used and this argument is ignored. If out is not provided, ‘float64’ is used by default.

Returns:

Normal matrix.

Return type:

ndarray


Back to top