models/py3Dv1/engine/utils/matrix.py
def rotation_x(cls, angle: float) -> Matrix:
        """Construct a matrix which performs a rotation around the x-axis by angle radians
        Arguments:
            angle - angle in radians to for xrotmat to represent.
        Returns:
            Matrix - angle rotation around x-axis Matrix
        """
        matrix = cls()
        matrix.val = [
            [1, 0.0, 0.0, 0.0],
            [0.0, cos(angle), sin(angle), 0.0],
            [0.0, -sin(angle), cos(angle), 0.0],
            [0.0, 0.0, 0.0, 1],
        ]
        return matrix
Construct a matrix which performs a rotation around the x-axis by angle radians
        Arguments:
            angle - angle in radians to for xrotmat to represent.
        Returns:
            Matrix - angle rotation around x-axis Matrix
        
Construct a matrix which performs a rotation around the x-axis by angle radians
Arguments:
angle - angle in radians to for xrotmat to represent.
Returns:
Matrix - angle rotation around x-axis Matrix
Construct a matrix which performs a rotation around the x - axis by angle radians Arguments : angle - angle in radians to for xrotmat to represent . Returns : Matrix - angle rotation around x - axis Matrix
def rotation_x(cls, angle: float) -> Matrix:
        matrix = cls()
        matrix.val = [
            [1, 0.0, 0.0, 0.0],
            [0.0, cos(angle), sin(angle), 0.0],
            [0.0, -sin(angle), cos(angle), 0.0],
            [0.0, 0.0, 0.0, 1],
        ]
        return matrix
def rotation_x ( cls , angle : float ) -> Matrix : matrix = cls ( ) matrix . val = [ [ 1 , 0.0 , 0.0 , 0.0 ] , [ 0.0 , cos ( angle ) , sin ( angle ) , 0.0 ] , [ 0.0 , - sin ( angle ) , cos ( angle ) , 0.0 ] , [ 0.0 , 0.0 , 0.0 , 1 ] , ] return matrix
Construct a matrix which performs a rotation around the x-axis by angle radians
Arguments:
angle - angle in radians to for xrotmat to represent.
Construct a matrix which performs a rotation around the x - axis by angle radians Arguments : angle - angle in radians to for xrotmat to represent .
"""Construct a matrix which performs a rotation around the x-axis by angle radians
        Arguments:
            angle - angle in radians to for xrotmat to represent.
        Returns:
            Matrix - angle rotation around x-axis Matrix
        """
cls
angle
float