models/py3Dv1/engine/utils/matrix.py
def translate(cls, position: Vector3) -> Matrix:
        """Construct a Matrix that performs a translation specified by the give
        position.
        Arguments:
            position - the Vector3 to construct translation matrix by.
        Returns:
            Matrix - the constructed translation Matrix.
        """
        matrix = cls()
        matrix.val = [
            [1, 0.0, 0.0, position.x],
            [0.0, 1, 0.0, position.y],
            [0.0, 0.0, 1, position.z],
            [0.0, 0.0, 0.0, 1],
        ]
        return matrix
Construct a Matrix that performs a translation specified by the give
        position.
        Arguments:
            position - the Vector3 to construct translation matrix by.
        Returns:
            Matrix - the constructed translation Matrix.
        
Construct a Matrix that performs a translation specified by the give
position.
Arguments:
position - the Vector3 to construct translation matrix by.
Returns:
Matrix - the constructed translation Matrix.
Construct a Matrix that performs a translation specified by the give position . Arguments : position - the Vector3 to construct translation matrix by . Returns : Matrix - the constructed translation Matrix .
def translate(cls, position: Vector3) -> Matrix:
        matrix = cls()
        matrix.val = [
            [1, 0.0, 0.0, position.x],
            [0.0, 1, 0.0, position.y],
            [0.0, 0.0, 1, position.z],
            [0.0, 0.0, 0.0, 1],
        ]
        return matrix
def translate ( cls , position : Vector3 ) -> Matrix : matrix = cls ( ) matrix . val = [ [ 1 , 0.0 , 0.0 , position . x ] , [ 0.0 , 1 , 0.0 , position . y ] , [ 0.0 , 0.0 , 1 , position . z ] , [ 0.0 , 0.0 , 0.0 , 1 ] , ] return matrix
Construct a Matrix that performs a translation specified by the give
position.
Construct a Matrix that performs a translation specified by the give position .
"""Construct a Matrix that performs a translation specified by the give
        position.
        Arguments:
            position - the Vector3 to construct translation matrix by.
        Returns:
            Matrix - the constructed translation Matrix.
        """
cls
position
Vector3