Garry's Mod Wiki

VMatrix:IsRotationMatrix

  boolean VMatrix:IsRotationMatrix()

Description

Returns whether the matrix is a rotation matrix or not.

Technically it checks if the forward, right and up vectors are orthogonal and normalized.

Returns

1 boolean
Is the matrix a rotation matrix or not