BlitzMax

BlitzMax

  • Downloads
  • Docs
  • API
  • Resources
  • About

›BRL.Geometry

BRL.Geometry

  • SVec2
  • SVec3
  • SMat2
  • SMat3
  • SMat4
  • SQuat
Edit

SMat2

A 2x2 Matrix

Constructors

Method New(a:Float, b:Float, c:Float, d:Float)

Creates a new SMat2 from the supplied arguments.


Operators

Method Operator+:SMat2(z:SMat2)

Adds z to the matrix, returning a new matrix.


Method Operator-:SMat2(z:SMat2)

Subtracts z from the matrix, returning a new matrix.


Method Operator*:SMat2(z:SMat2)

Multiplies the matrix by z, returning a new matrix.


Methods

Method Adjoint:SMat2()

Returns the transposition of the cofactor matrix.


Method CompMul:SMat2(z:SMat2)

Multiplies the matrix by z by its components, return a new matrix.


Method Det:Float()

Returns the determinant of the matrix.


Method Invert:SMat2()

Returns the inverse of the matrix.


Method Rotate:SMat2(angle:Float)

Rotates the matrix by angle degrees, returning the rotated matrix.


Method Scale:SMat2(s:SVec2)

Returns the scale of this matrix.


Method Transpose:SMat2()

Returns the transpose of this matrix.


Method ToString:String() Override

Returns a String representation of the matrix.


Functions

Function Identity:SMat2()

Returns the identity matrix.


Function Rotation:SMat2(angle:Float)

Creates a rotated matrix of angle degrees.


Function Scaling:SMat2(s:SVec2)

Creates a scaled matrix of the scale s.


← SVec3SMat3 →
  • Constructors
    • Method New(a:Float, b:Float, c:Float, d:Float)
  • Operators
    • Method Operator+:SMat2(z:SMat2)
    • Method Operator-:SMat2(z:SMat2)
    • Method Operator*:SMat2(z:SMat2)
  • Methods
    • Method Adjoint:SMat2()
    • Method CompMul:SMat2(z:SMat2)
    • Method Det:Float()
    • Method Invert:SMat2()
    • Method Rotate:SMat2(angle:Float)
    • Method Scale:SMat2(s:SVec2)
    • Method Transpose:SMat2()
    • Method ToString:String() Override
  • Functions
    • Function Identity:SMat2()
    • Function Rotation:SMat2(angle:Float)
    • Function Scaling:SMat2(s:SVec2)
BlitzMax
Docs
Getting StartedDownloadsAbout
Community
ResourcesSyntaxBomb Forums
More
NewsGitHubStar
Copyright © 2019 Bruce A Henderson