Hilo3d API - v2.0.0
    Preparing search index...

    Class Matrix3

    3x3 矩阵

    Index
    className: string = 'Matrix3'

    类名

    elements: mat3
    isMatrix3: boolean = true
    • Calculates the determinant of this

      Returns number

    • Returns whether or not the matrices have approximately the same elements in the same position.

      Parameters

      • a: Matrix3
      • Optionalb: Matrix3

        如果不传,比较 this 和 a 是否近似相等

      Returns boolean

    • Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)

      Parameters

      • a: Matrix3
      • Optionalb: Matrix3

        如果不传,比较 this 和 a 是否相等

      Returns boolean

    • Returns Frobenius norm of this

      Returns number

      Frobenius norm

    • 从数组赋值

      Parameters

      • array: ArrayLike<number>

        数组

      • offset: number = 0

        数组偏移值

      Returns this

      this

    • Copies the upper-left 3x3 values into the given mat3.

      Parameters

      Returns this

      this

    • Creates a matrix from a given angle

      Parameters

      • rad: number

        the angle to rotate the matrix by

      Returns this

      this

    • fromRotationTranslationScale

      Parameters

      • rotation: number

        rad angle

      • x: number
      • y: number
      • scaleX: number
      • scaleY: number

      Returns this

    • Creates a matrix from a vector translation

      Parameters

      Returns this

      this

    • Set this to the identity matrix

      Returns this

      this

    • Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix

      Parameters

      • m: Matrix4

        Mat4 to derive the normal matrix from

      Returns this

      this

    • Rotates this by the given angle

      Parameters

      • rad: number

        the angle to rotate the matrix by

      Returns this

      this

    • Scales the mat3 by the dimensions in the given vec2

      Parameters

      • v: Vector2

        the vec2 to scale the matrix by

      Returns this

      this

    • Set the components of a mat3 to the given values

      Parameters

      • m00: number
      • m01: number
      • m02: number
      • m10: number
      • m11: number
      • m12: number
      • m20: number
      • m21: number
      • m22: number

      Returns this

      this

    • Transpose the values of this

      Returns this

      this