• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Struct Matrix

Implements
System.IEquatable<Matrix>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Inferno
Assembly: Inferno.Desktop.dll
Syntax
public struct Matrix : IEquatable<Matrix>

Constructors

| Improve this Doc View Source

Matrix(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

Declaration
public Matrix(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
Parameters
Type Name Description
System.Single m11
System.Single m12
System.Single m13
System.Single m14
System.Single m21
System.Single m22
System.Single m23
System.Single m24
System.Single m31
System.Single m32
System.Single m33
System.Single m34
System.Single m41
System.Single m42
System.Single m43
System.Single m44

Fields

| Improve this Doc View Source

Identity

Declaration
public static readonly Matrix Identity
Field Value
Type Description
Matrix
| Improve this Doc View Source

M11

Declaration
public float M11
Field Value
Type Description
System.Single
| Improve this Doc View Source

M12

Declaration
public float M12
Field Value
Type Description
System.Single
| Improve this Doc View Source

M13

Declaration
public float M13
Field Value
Type Description
System.Single
| Improve this Doc View Source

M14

Declaration
public float M14
Field Value
Type Description
System.Single
| Improve this Doc View Source

M21

Declaration
public float M21
Field Value
Type Description
System.Single
| Improve this Doc View Source

M22

Declaration
public float M22
Field Value
Type Description
System.Single
| Improve this Doc View Source

M23

Declaration
public float M23
Field Value
Type Description
System.Single
| Improve this Doc View Source

M24

Declaration
public float M24
Field Value
Type Description
System.Single
| Improve this Doc View Source

M31

Declaration
public float M31
Field Value
Type Description
System.Single
| Improve this Doc View Source

M32

Declaration
public float M32
Field Value
Type Description
System.Single
| Improve this Doc View Source

M33

Declaration
public float M33
Field Value
Type Description
System.Single
| Improve this Doc View Source

M34

Declaration
public float M34
Field Value
Type Description
System.Single
| Improve this Doc View Source

M41

Declaration
public float M41
Field Value
Type Description
System.Single
| Improve this Doc View Source

M42

Declaration
public float M42
Field Value
Type Description
System.Single
| Improve this Doc View Source

M43

Declaration
public float M43
Field Value
Type Description
System.Single
| Improve this Doc View Source

M44

Declaration
public float M44
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

Array

Declaration
public float[] Array { get; }
Property Value
Type Description
System.Single[]
| Improve this Doc View Source

Backward

Declaration
public Vector3 Backward { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Down

Declaration
public Vector3 Down { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Forward

Declaration
public Vector3 Forward { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Item[Int32]

Declaration
public float this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
System.Single
| Improve this Doc View Source

Item[Int32, Int32]

Declaration
public float this[int row, int column] { get; set; }
Parameters
Type Name Description
System.Int32 row
System.Int32 column
Property Value
Type Description
System.Single
| Improve this Doc View Source

Left

Declaration
public Vector3 Left { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Right

Declaration
public Vector3 Right { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Scale

Declaration
public Vector3 Scale { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Translation

Declaration
public Vector3 Translation { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Up

Declaration
public Vector3 Up { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

CreateOrthographic(Single, Single, Single, Single)

Declaration
public static Matrix CreateOrthographic(float width, float height, float zNear, float zFar)
Parameters
Type Name Description
System.Single width
System.Single height
System.Single zNear
System.Single zFar
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateOrthographicOffCenter(Single, Single, Single, Single, Single, Single)

Declaration
public static Matrix CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNear, float zFar)
Parameters
Type Name Description
System.Single left
System.Single right
System.Single bottom
System.Single top
System.Single zNear
System.Single zFar
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateRotationX(Single)

Declaration
public static Matrix CreateRotationX(float degrees)
Parameters
Type Name Description
System.Single degrees
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateRotationY(Single)

Declaration
public static Matrix CreateRotationY(float degrees)
Parameters
Type Name Description
System.Single degrees
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateRotationZ(Single)

Declaration
public static Matrix CreateRotationZ(float degrees)
Parameters
Type Name Description
System.Single degrees
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateScale(Vector3)

Declaration
public static Matrix CreateScale(Vector3 scales)
Parameters
Type Name Description
Vector3 scales
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateScale(Single)

Declaration
public static Matrix CreateScale(float scale)
Parameters
Type Name Description
System.Single scale
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateScale(Single, Single, Single)

Declaration
public static Matrix CreateScale(float xScale, float yScale, float zScale)
Parameters
Type Name Description
System.Single xScale
System.Single yScale
System.Single zScale
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateTranslation(Vector3)

Declaration
public static Matrix CreateTranslation(Vector3 position)
Parameters
Type Name Description
Vector3 position
Returns
Type Description
Matrix
| Improve this Doc View Source

CreateTranslation(Single, Single, Single)

Declaration
public static Matrix CreateTranslation(float xPos, float yPos, float zPos)
Parameters
Type Name Description
System.Single xPos
System.Single yPos
System.Single zPos
Returns
Type Description
Matrix
| Improve this Doc View Source

Equals(Matrix)

Declaration
public bool Equals(Matrix other)
Parameters
Type Name Description
Matrix other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

Invert()

Declaration
public Matrix Invert()
Returns
Type Description
Matrix
| Improve this Doc View Source

Invert(Matrix)

Declaration
public static Matrix Invert(Matrix matrix)
Parameters
Type Name Description
Matrix matrix
Returns
Type Description
Matrix

Operators

| Improve this Doc View Source

Addition(Matrix, Matrix)

Declaration
public static Matrix operator +(Matrix a, Matrix b)
Parameters
Type Name Description
Matrix a
Matrix b
Returns
Type Description
Matrix
| Improve this Doc View Source

Division(Matrix, Matrix)

Declaration
public static Matrix operator /(Matrix a, Matrix b)
Parameters
Type Name Description
Matrix a
Matrix b
Returns
Type Description
Matrix
| Improve this Doc View Source

Division(Matrix, Int32)

Declaration
public static Matrix operator /(Matrix a, int b)
Parameters
Type Name Description
Matrix a
System.Int32 b
Returns
Type Description
Matrix
| Improve this Doc View Source

Division(Matrix, Single)

Declaration
public static Matrix operator /(Matrix a, float b)
Parameters
Type Name Description
Matrix a
System.Single b
Returns
Type Description
Matrix
| Improve this Doc View Source

Multiply(Matrix, Matrix)

Declaration
public static Matrix operator *(Matrix a, Matrix b)
Parameters
Type Name Description
Matrix a
Matrix b
Returns
Type Description
Matrix
| Improve this Doc View Source

Multiply(Matrix, Int32)

Declaration
public static Matrix operator *(Matrix a, int b)
Parameters
Type Name Description
Matrix a
System.Int32 b
Returns
Type Description
Matrix
| Improve this Doc View Source

Multiply(Matrix, Single)

Declaration
public static Matrix operator *(Matrix a, float b)
Parameters
Type Name Description
Matrix a
System.Single b
Returns
Type Description
Matrix
| Improve this Doc View Source

Subtraction(Matrix, Matrix)

Declaration
public static Matrix operator -(Matrix a, Matrix b)
Parameters
Type Name Description
Matrix a
Matrix b
Returns
Type Description
Matrix
| Improve this Doc View Source

UnaryNegation(Matrix)

Declaration
public static Matrix operator -(Matrix a)
Parameters
Type Name Description
Matrix a
Returns
Type Description
Matrix

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX