• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • JeremyAnsel.DirectX.D2D1
      • D2D1AlphaMode
      • D2D1AntialiasMode
      • D2D1ArcSegment
      • D2D1ArcSize
      • D2D1BezierSegment
      • D2D1Bitmap
      • D2D1BitmapBrush
      • D2D1BitmapBrushProperties
      • D2D1BitmapInterpolationMode
      • D2D1BitmapProperties
      • D2D1BitmapRenderTarget
      • D2D1Brush
      • D2D1BrushProperties
      • D2D1CapStyle
      • D2D1ColorF
      • D2D1CombineMode
      • D2D1CompatibleRenderTargetOptions
      • D2D1Constants
      • D2D1DCInitializeMode
      • D2D1DCRenderTarget
      • D2D1DashStyle
      • D2D1DebugLevel
      • D2D1DrawTextOptions
      • D2D1DrawingStateBlock
      • D2D1DrawingStateDescription
      • D2D1Ellipse
      • D2D1EllipseGeometry
      • D2D1Error
      • D2D1ExtendMode
      • D2D1Factory
      • D2D1FactoryOptions
      • D2D1FactoryType
      • D2D1FeatureLevel
      • D2D1FigureBegin
      • D2D1FigureEnd
      • D2D1FillMode
      • D2D1Gamma
      • D2D1Geometry
      • D2D1GeometryGroup
      • D2D1GeometryRelation
      • D2D1GeometrySimplificationOption
      • D2D1GeometrySink
      • D2D1GradientStop
      • D2D1GradientStopCollection
      • D2D1HwndRenderTarget
      • D2D1HwndRenderTargetProperties
      • D2D1Image
      • D2D1InterpolationModeDefinition
      • D2D1KnownColor
      • D2D1Layer
      • D2D1LayerOptions
      • D2D1LayerParameters
      • D2D1LineJoin
      • D2D1LinearGradientBrush
      • D2D1LinearGradientBrushProperties
      • D2D1Matrix3X2F
      • D2D1Matrix4X3F
      • D2D1Matrix4X4F
      • D2D1Matrix5X4F
      • D2D1Mesh
      • D2D1OpacityMaskContent
      • D2D1PathGeometry
      • D2D1PathSegmentOptions
      • D2D1PixelFormat
      • D2D1Point2F
      • D2D1Point2L
      • D2D1Point2U
      • D2D1PresentOptions
      • D2D1QuadraticBezierSegment
      • D2D1RadialGradientBrush
      • D2D1RadialGradientBrushProperties
      • D2D1RectF
      • D2D1RectL
      • D2D1RectU
      • D2D1RectangleGeometry
      • D2D1RenderTarget
      • D2D1RenderTargetProperties
      • D2D1RenderTargetType
      • D2D1RenderTargetUsages
      • D2D1Resource
      • D2D1RoundedRect
      • D2D1RoundedRectangleGeometry
      • D2D1SimplifiedGeometrySink
      • D2D1SizeF
      • D2D1SizeU
      • D2D1SolidColorBrush
      • D2D1StrokeStyle
      • D2D1StrokeStyleProperties
      • D2D1SweepDirection
      • D2D1TessellationSink
      • D2D1TextAntialiasMode
      • D2D1TransformedGeometry
      • D2D1Triangle
      • D2D1Utils
      • D2D1Vector2F
      • D2D1Vector3F
      • D2D1Vector4F
      • D2D1WindowStates
      • ID2D1Releasable
    • JeremyAnsel.DirectX.D3D10
      • D3D10CreateDeviceOptions
      • D3D10Device1
      • D3D10DriverType
      • D3D10Error
      • D3D10FeatureLevel
      • D3D10Utils
      • ID3D10Releasable
    • JeremyAnsel.DirectX.D3D11
      • D3D11AsyncGetDataOptions
      • D3D11Asynchronous
      • D3D11BindOptions
      • D3D11BlendDesc
      • D3D11BlendOperation
      • D3D11BlendState
      • D3D11BlendValue
      • D3D11Box
      • D3D11Buffer
      • D3D11BufferDesc
      • D3D11BufferExSrv
      • D3D11BufferExSrvOptions
      • D3D11BufferRtv
      • D3D11BufferSrv
      • D3D11BufferUav
      • D3D11BufferUavOptions
      • D3D11ClassInstance
      • D3D11ClassInstanceDesc
      • D3D11ClassLinkage
      • D3D11ClearOptions
      • D3D11ColorWriteEnables
      • D3D11CommandList
      • D3D11ComparisonFunction
      • D3D11ComputeShader
      • D3D11Constants
      • D3D11Counter
      • D3D11CounterDataType
      • D3D11CounterDesc
      • D3D11CounterInfo
      • D3D11CounterType
      • D3D11CpuAccessOptions
      • D3D11CreateDeviceOptions
      • D3D11CullMode
      • D3D11DepthStencilDesc
      • D3D11DepthStencilOperationDesc
      • D3D11DepthStencilState
      • D3D11DepthStencilView
      • D3D11DepthStencilViewDesc
      • D3D11DepthStencilViewOptions
      • D3D11DepthWriteMask
      • D3D11Device
      • D3D11DeviceChild
      • D3D11DeviceContext
      • D3D11DeviceContextType
      • D3D11DomainShader
      • D3D11DriverType
      • D3D11DsvDimension
      • D3D11Error
      • D3D11Feature
      • D3D11FeatureDataArchitectureInfo
      • D3D11FeatureDataD3D10XHardwareOptions
      • D3D11FeatureDataD3D11Options
      • D3D11FeatureDataD3D11Options1
      • D3D11FeatureDataD3D9Options
      • D3D11FeatureDataD3D9Options1
      • D3D11FeatureDataD3D9ShadowSupport
      • D3D11FeatureDataD3D9SimpleInstancingSupport
      • D3D11FeatureDataDoubles
      • D3D11FeatureDataFormatSupport
      • D3D11FeatureDataFormatSupport2
      • D3D11FeatureDataMarkerSupport
      • D3D11FeatureDataShaderMinPrecisionSupport
      • D3D11FeatureDataThreading
      • D3D11FeatureLevel
      • D3D11FillMode
      • D3D11Filter
      • D3D11FormatSupport
      • D3D11FormatSupport2
      • D3D11GeometryShader
      • D3D11HullShader
      • D3D11InputClassification
      • D3D11InputElementDesc
      • D3D11InputLayout
      • D3D11MapCpuPermission
      • D3D11MapOptions
      • D3D11MappedSubResource
      • D3D11PixelShader
      • D3D11Predicate
      • D3D11Primitive
      • D3D11PrimitiveTopology
      • D3D11Query
      • D3D11QueryDataPipelineStatistics
      • D3D11QueryDataStreamOutputStatistics
      • D3D11QueryDataTimestampDisjoint
      • D3D11QueryDesc
      • D3D11QueryMiscOptions
      • D3D11QueryType
      • D3D11RaiseOptions
      • D3D11RasterizerDesc
      • D3D11RasterizerState
      • D3D11Rect
      • D3D11RenderTargetBlendDesc
      • D3D11RenderTargetView
      • D3D11RenderTargetViewDesc
      • D3D11Resource
      • D3D11ResourceDimension
      • D3D11ResourceMiscOptions
      • D3D11RtvDimension
      • D3D11SamplerDesc
      • D3D11SamplerState
      • D3D11ShaderMinPrecisionSupports
      • D3D11ShaderResourceView
      • D3D11ShaderResourceViewDesc
      • D3D11SrvDimension
      • D3D11StencilOperation
      • D3D11StreamOutputDeclarationEntry
      • D3D11SubResourceData
      • D3D11Texture1D
      • D3D11Texture1DArrayDsv
      • D3D11Texture1DArrayRtv
      • D3D11Texture1DArraySrv
      • D3D11Texture1DArrayUav
      • D3D11Texture1DDesc
      • D3D11Texture1DDsv
      • D3D11Texture1DRtv
      • D3D11Texture1DSrv
      • D3D11Texture1DUav
      • D3D11Texture2D
      • D3D11Texture2DArrayDsv
      • D3D11Texture2DArrayRtv
      • D3D11Texture2DArraySrv
      • D3D11Texture2DArrayUav
      • D3D11Texture2DDesc
      • D3D11Texture2DDsv
      • D3D11Texture2DMsArrayDsv
      • D3D11Texture2DMsArrayRtv
      • D3D11Texture2DMsArraySrv
      • D3D11Texture2DMsDsv
      • D3D11Texture2DMsRtv
      • D3D11Texture2DMsSrv
      • D3D11Texture2DRtv
      • D3D11Texture2DSrv
      • D3D11Texture2DUav
      • D3D11Texture3D
      • D3D11Texture3DDesc
      • D3D11Texture3DRtv
      • D3D11Texture3DSrv
      • D3D11Texture3DUav
      • D3D11TextureAddressMode
      • D3D11TextureCubeArraySrv
      • D3D11TextureCubeFace
      • D3D11TextureCubeSrv
      • D3D11TiledResourcesTier
      • D3D11UavDimension
      • D3D11UnorderedAccessView
      • D3D11UnorderedAccessViewDesc
      • D3D11Usage
      • D3D11Utils
      • D3D11VertexShader
      • D3D11View
      • D3D11Viewport
      • D3D11WellKnownPrivateDataId
      • DxgiSwapChainExtensions
      • ID3D11Releasable
    • JeremyAnsel.DirectX.D3DCompiler
      • D3DCompile
      • D3DCompileOptions
      • D3DDisassembleOptions
      • D3DShaderMacro
      • D3DTargets
    • JeremyAnsel.DirectX.DWrite
      • DWriteBreakCondition
      • DWriteClusterMetrics
      • DWriteError
      • DWriteFactory
      • DWriteFactoryType
      • DWriteFlowDirection
      • DWriteFont
      • DWriteFontCollection
      • DWriteFontFace
      • DWriteFontFaceType
      • DWriteFontFamily
      • DWriteFontFeature
      • DWriteFontFeatureTag
      • DWriteFontFile
      • DWriteFontFileType
      • DWriteFontList
      • DWriteFontMetrics
      • DWriteFontSimulations
      • DWriteFontStretch
      • DWriteFontStyle
      • DWriteFontWeight
      • DWriteGlyphMetrics
      • DWriteGlyphOffset
      • DWriteGlyphRun
      • DWriteGlyphRunDescription
      • DWriteHitTestMetrics
      • DWriteInformationalStringId
      • DWriteInlineObjectMetrics
      • DWriteLineBreakpoint
      • DWriteLineMetrics
      • DWriteLineSpacingMethod
      • DWriteLocalizedStrings
      • DWriteMatrix
      • DWriteMeasuringMode
      • DWriteNumberSubstitutionMethod
      • DWriteOverhangMetrics
      • DWriteParagraphAlignment
      • DWritePixelGeometry
      • DWriteReadingDirection
      • DWriteRect
      • DWriteRenderingMode
      • DWriteRenderingParams
      • DWriteScriptAnalysis
      • DWriteScriptShape
      • DWriteShapingGlyphProperties
      • DWriteShapingTextProperties
      • DWriteSize
      • DWriteStrikethrough
      • DWriteTextAlignment
      • DWriteTextFormat
      • DWriteTextLayout
      • DWriteTextMetrics
      • DWriteTextRange
      • DWriteTextureType
      • DWriteTrimming
      • DWriteTrimmingGranularity
      • DWriteTypography
      • DWriteUnderline
      • DWriteUtils
      • DWriteWordWrapping
      • IDWriteReleasable
    • JeremyAnsel.DirectX.DXMath
      • XMColor
      • XMComparisonRecord
      • XMFloat2
      • XMFloat3
      • XMFloat3X3
      • XMFloat4
      • XMFloat4X3
      • XMFloat4X4
      • XMInt2
      • XMInt3
      • XMInt4
      • XMKnownColor
      • XMMath
      • XMMatrix
      • XMPermutation
      • XMPlane
      • XMQuaternion
      • XMScalar
      • XMSelection
      • XMSwizzle
      • XMUInt2
      • XMUInt3
      • XMUInt4
      • XMVector
      • XMVector2
      • XMVector3
      • XMVector4
    • JeremyAnsel.DirectX.DXMath.Collision
      • BoundingBox
      • BoundingFrustum
      • BoundingOrientedBox
      • BoundingSphere
      • ContainmentType
      • PlaneIntersectionType
      • TriangleTest
    • JeremyAnsel.DirectX.DXMath.PackedVector
      • Half
      • XMByte2
      • XMByte4
      • XMByteN2
      • XMByteN4
      • XMColorRgba
      • XMDec4
      • XMDecN4
      • XMFloat3Packed
      • XMFloat3SharedExponent
      • XMHalf2
      • XMHalf4
      • XMShort2
      • XMShort4
      • XMShortN2
      • XMShortN4
      • XMU555
      • XMU565
      • XMUByte2
      • XMUByte4
      • XMUByteN2
      • XMUByteN4
      • XMUDec4
      • XMUDecN4
      • XMUDecN4XR
      • XMUNibble4
      • XMUShort2
      • XMUShort4
      • XMUShortN2
      • XMUShortN4
      • XMXDec4
      • XMXDecN4
    • JeremyAnsel.DirectX.Dxgi
      • DxgiAdapter
      • DxgiAdapter1
      • DxgiAdapter2
      • DxgiAdapter3
      • DxgiAdapterDesc
      • DxgiAdapterDesc1
      • DxgiAdapterDesc2
      • DxgiAdapterType
      • DxgiAlphaMode
      • DxgiColorRgb
      • DxgiColorRgba
      • DxgiComputePreemptionGranularity
      • DxgiCpuAccess
      • DxgiCreateFactoryOptions
      • DxgiDevice
      • DxgiDevice1
      • DxgiDevice2
      • DxgiDevice3
      • DxgiDeviceSubObject
      • DxgiEnumModes
      • DxgiError
      • DxgiFactory
      • DxgiFactory1
      • DxgiFactory2
      • DxgiFactory3
      • DxgiFormat
      • DxgiFrameStatistics
      • DxgiGammaControl
      • DxgiGammaControlCapabilities
      • DxgiGraphicsPreemptionGranularity
      • DxgiKeyedMutex
      • DxgiMapOptions
      • DxgiMappedRect
      • DxgiMatrix3x2F
      • DxgiModeDesc
      • DxgiModeDesc1
      • DxgiModeRotation
      • DxgiModeScaling
      • DxgiModeScanlineOrder
      • DxgiObject
      • DxgiOfferResourcePriority
      • DxgiOutput
      • DxgiOutput1
      • DxgiOutput2
      • DxgiOutput3
      • DxgiOutputDesc
      • DxgiPoint
      • DxgiPresentOptions
      • DxgiRational
      • DxgiRect
      • DxgiResidency
      • DxgiResource
      • DxgiResource1
      • DxgiResource2
      • DxgiResource3
      • DxgiResourceEvictionPriority
      • DxgiSampleDesc
      • DxgiScaling
      • DxgiSharedResource
      • DxgiSharedResourceAccess
      • DxgiSurface
      • DxgiSurface1
      • DxgiSurface2
      • DxgiSurface3
      • DxgiSurfaceDesc
      • DxgiSwapChain
      • DxgiSwapChain1
      • DxgiSwapChain2
      • DxgiSwapChain3
      • DxgiSwapChainDesc
      • DxgiSwapChainDesc1
      • DxgiSwapChainFullscreenDesc
      • DxgiSwapChainOptions
      • DxgiSwapEffect
      • DxgiUsages
      • DxgiUtils
      • DxgiWindowAssociationOptions
      • IDxgiReleasable

    Struct XMMatrix

    Describes a 4*4 matrix.

    Implements
    IEquatable<XMMatrix>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: JeremyAnsel.DirectX.DXMath
    Assembly: JeremyAnsel.DirectX.DXMath.dll
    Syntax
    public struct XMMatrix : IEquatable<XMMatrix>

    Constructors

    | Edit this page View Source

    XMMatrix(XMVector, XMVector, XMVector, XMVector)

    Initializes a new instance of the XMMatrix struct.

    Declaration
    public XMMatrix(XMVector r1, XMVector r2, XMVector r3, XMVector r4)
    Parameters
    Type Name Description
    XMVector r1

    The first row.

    XMVector r2

    The second row.

    XMVector r3

    The third row.

    XMVector r4

    The fourth row.

    | Edit this page View Source

    XMMatrix(XMVector[])

    Initializes a new instance of the XMMatrix struct.

    Declaration
    public XMMatrix(XMVector[] rows)
    Parameters
    Type Name Description
    XMVector[] rows

    The rows.

    | Edit this page View Source

    XMMatrix(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)

    Initializes a new instance of the XMMatrix struct.

    Declaration
    public XMMatrix(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
    float m11

    The value in the first row and first column.

    float m12

    The value in the first row and second column.

    float m13

    The value in the first row and third column.

    float m14

    The value in the first row and fourth column.

    float m21

    The value in the second row and first column.

    float m22

    The value in the second row and second column.

    float m23

    The value in the second row and third column.

    float m24

    The value in the second row and fourth column.

    float m31

    The value in the third row and first column.

    float m32

    The value in the third row and second column.

    float m33

    The value in the third row and third column.

    float m34

    The value in the third row and fourth column.

    float m41

    The value in the fourth row and first column.

    float m42

    The value in the fourth row and second column.

    float m43

    The value in the fourth row and third column.

    float m44

    The value in the fourth row and fourth column.

    | Edit this page View Source

    XMMatrix(float[])

    Initializes a new instance of the XMMatrix struct.

    Declaration
    public XMMatrix(float[] array)
    Parameters
    Type Name Description
    float[] array

    The values.

    Properties

    | Edit this page View Source

    Identity

    Gets the identity matrix.

    Declaration
    public static XMMatrix Identity { get; }
    Property Value
    Type Description
    XMMatrix
    | Edit this page View Source

    this[int, int]

    Gets or sets a value specified by row and column.

    Declaration
    public float this[int row, int column] { get; set; }
    Parameters
    Type Name Description
    int row

    The row of the value.

    int column

    The column of the value.

    Property Value
    Type Description
    float

    A float value.

    | Edit this page View Source

    M11

    Gets or sets the value in the first row and first column.

    Declaration
    public float M11 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M12

    Gets or sets the value in the first row and second column.

    Declaration
    public float M12 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M13

    Gets or sets the value in the first row and third column.

    Declaration
    public float M13 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M14

    Gets or sets the value in the first row and fourth column.

    Declaration
    public float M14 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M21

    Gets or sets the value in the second row and first column.

    Declaration
    public float M21 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M22

    Gets or sets the value in the second row and second column.

    Declaration
    public float M22 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M23

    Gets or sets the value in the second row and third column.

    Declaration
    public float M23 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M24

    Gets or sets the value in the second row and fourth column.

    Declaration
    public float M24 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M31

    Gets or sets the value in the third row and first column.

    Declaration
    public float M31 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M32

    Gets or sets the value in the third row and second column.

    Declaration
    public float M32 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M33

    Gets or sets the value in the third row and third column.

    Declaration
    public float M33 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M34

    Gets or sets the value in the third row and fourth column.

    Declaration
    public float M34 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M41

    Gets or sets the value in the fourth row and first column.

    Declaration
    public float M41 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M42

    Gets or sets the value in the fourth row and second column.

    Declaration
    public float M42 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M43

    Gets or sets the value in the fourth row and third column.

    Declaration
    public float M43 { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    M44

    Gets or sets the value in the fourth row and fourth column.

    Declaration
    public float M44 { get; set; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Add(XMMatrix, XMMatrix)

    Computes the sum of two matrices.

    Declaration
    public static XMMatrix Add(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns a matrix that is the sum of the two matrices.

    | Edit this page View Source

    AffineTransformation(XMVector, XMVector, XMVector, XMVector)

    Builds an affine transformation matrix.

    Declaration
    public static XMMatrix AffineTransformation(XMVector scaling, XMVector rotationOrigin, XMVector rotationQuaternion, XMVector translation)
    Parameters
    Type Name Description
    XMVector scaling

    Vector of scaling factors for each dimension.

    XMVector rotationOrigin

    Point identifying the center of rotation.

    XMVector rotationQuaternion

    Rotation factors.

    XMVector translation

    Translation offsets.

    Returns
    Type Description
    XMMatrix

    Returns the affine transformation matrix, built from the scaling, rotation, and translation information.

    | Edit this page View Source

    AffineTransformation2D(XMVector, XMVector, float, XMVector)

    Builds a 2D affine transformation matrix in the xy plane.

    Declaration
    public static XMMatrix AffineTransformation2D(XMVector scaling, XMVector rotationOrigin, float rotation, XMVector translation)
    Parameters
    Type Name Description
    XMVector scaling

    2D vector of scaling factors for the x-coordinate and y-coordinate.

    XMVector rotationOrigin

    2D vector describing the center of rotation.

    float rotation

    Radian angle of rotation.

    XMVector translation

    2D vector translation offsets.

    Returns
    Type Description
    XMMatrix

    Returns the 2D affine transformation matrix.

    | Edit this page View Source

    Decompose(out XMVector, out XMVector, out XMVector)

    Breaks down a general 3D transformation matrix into its scalar, rotational, and translational components.

    Declaration
    public bool Decompose(out XMVector scale, out XMVector rotationQuaternion, out XMVector translation)
    Parameters
    Type Name Description
    XMVector scale

    The scaling factors applied along the x, y, and z-axes.

    XMVector rotationQuaternion

    A quaternion that describes the rotation.

    XMVector translation

    A translation along the x, y, and z-axes.

    Returns
    Type Description
    bool

    If the function succeeds, the return value is true. If the function fails, the return value is false.

    | Edit this page View Source

    Determinant()

    Computes the determinant of a matrix.

    Declaration
    public XMVector Determinant()
    Returns
    Type Description
    XMVector

    Returns a vector. The determinant of M is replicated into each component.

    | Edit this page View Source

    Divide(XMMatrix, float)

    Divide each element of a matrix by a scalar.

    Declaration
    public static XMMatrix Divide(XMMatrix m, float s)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    float s

    The scalar.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    Equals(XMMatrix)

    Determines whether the specified object is equal to the current object.

    Declaration
    public bool Equals(XMMatrix other)
    Parameters
    Type Name Description
    XMMatrix other

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    | Edit this page View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    ValueType.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()
    | Edit this page View Source

    Inverse()

    Computes the inverse of a matrix.

    Declaration
    public XMMatrix Inverse()
    Returns
    Type Description
    XMMatrix

    Returns the matrix inverse of M. If there is no inverse (that is, if the determinant is 0), returns an infinite matrix.

    | Edit this page View Source

    Inverse(out XMVector)

    Computes the inverse of a matrix.

    Declaration
    public XMMatrix Inverse(out XMVector determinant)
    Parameters
    Type Name Description
    XMVector determinant

    A vector, each of whose components is the determinant of M.

    Returns
    Type Description
    XMMatrix

    Returns the matrix inverse of M. If there is no inverse (that is, if the determinant is 0), returns an infinite matrix.

    | Edit this page View Source

    IsIdentity()

    Tests whether a matrix is the identity matrix.

    Declaration
    public bool IsIdentity()
    Returns
    Type Description
    bool

    Returns true if M is the identity matrix, and false otherwise.

    | Edit this page View Source

    IsInfinite()

    Tests whether any of the elements of a matrix are positive or negative infinity.

    Declaration
    public bool IsInfinite()
    Returns
    Type Description
    bool

    Returns true if any element of M is either positive or negative infinity, and false otherwise.

    | Edit this page View Source

    IsNaN()

    Tests whether any of the elements of a matrix are NaN.

    Declaration
    public bool IsNaN()
    Returns
    Type Description
    bool

    Returns true if any element of M is NaN, and false otherwise.

    | Edit this page View Source

    LoadFloat3X3(XMFloat3X3)

    Loads an XMFloat3X3 into an XMMatrix.

    Declaration
    public static XMMatrix LoadFloat3X3(XMFloat3X3 source)
    Parameters
    Type Name Description
    XMFloat3X3 source

    The structure to load.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    LoadFloat4X3(XMFloat4X3)

    Loads an XMFloat4X3 into an XMMatrix.

    Declaration
    public static XMMatrix LoadFloat4X3(XMFloat4X3 source)
    Parameters
    Type Name Description
    XMFloat4X3 source

    The structure to load.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    LoadFloat4X4(XMFloat4X4)

    Loads an XMFloat4X4 into an XMMatrix.

    Declaration
    public static XMMatrix LoadFloat4X4(XMFloat4X4 source)
    Parameters
    Type Name Description
    XMFloat4X4 source

    The structure to load.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    LookAtLH(XMVector, XMVector, XMVector)

    Builds a view matrix for a left-handed coordinate system using a camera position, an up direction, and a focal point.

    Declaration
    public static XMMatrix LookAtLH(XMVector eyePosition, XMVector focusPosition, XMVector directionUp)
    Parameters
    Type Name Description
    XMVector eyePosition

    Position of the camera.

    XMVector focusPosition

    Position of the focal point.

    XMVector directionUp

    Up direction of the camera.

    Returns
    Type Description
    XMMatrix

    Returns a view matrix that transforms a point from world space into view space.

    | Edit this page View Source

    LookAtRH(XMVector, XMVector, XMVector)

    Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a focal point.

    Declaration
    public static XMMatrix LookAtRH(XMVector eyePosition, XMVector focusPosition, XMVector directionUp)
    Parameters
    Type Name Description
    XMVector eyePosition

    Position of the camera.

    XMVector focusPosition

    Position of the focal point.

    XMVector directionUp

    Up direction of the camera.

    Returns
    Type Description
    XMMatrix

    Returns a view matrix that transforms a point from world space into view space.

    | Edit this page View Source

    LookToLH(XMVector, XMVector, XMVector)

    Builds a view matrix for a left-handed coordinate system using a camera position, an up direction, and a camera direction.

    Declaration
    public static XMMatrix LookToLH(XMVector eyePosition, XMVector eyeDirection, XMVector directionUp)
    Parameters
    Type Name Description
    XMVector eyePosition

    Position of the camera.

    XMVector eyeDirection

    Direction of the camera.

    XMVector directionUp

    Up direction of the camera.

    Returns
    Type Description
    XMMatrix

    Returns a view matrix that transforms a point from world space into view space.

    | Edit this page View Source

    LookToRH(XMVector, XMVector, XMVector)

    Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a camera direction.

    Declaration
    public static XMMatrix LookToRH(XMVector eyePosition, XMVector eyeDirection, XMVector directionUp)
    Parameters
    Type Name Description
    XMVector eyePosition

    Position of the camera.

    XMVector eyeDirection

    Direction of the camera.

    XMVector directionUp

    Up direction of the camera.

    Returns
    Type Description
    XMMatrix

    Returns a view matrix that transforms a point from world space into view space.

    | Edit this page View Source

    Multiply(XMMatrix, XMMatrix)

    Computes the product of two matrices.

    Declaration
    public static XMMatrix Multiply(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns the product of M1 and M2.

    | Edit this page View Source

    Multiply(XMMatrix, float)

    Multiply each element of a matrix by a scalar.

    Declaration
    public static XMMatrix Multiply(XMMatrix m, float s)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    float s

    The scalar.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    MultiplyTranspose(XMMatrix, XMMatrix)

    Computes the transpose of the product of two matrices.

    Declaration
    public static XMMatrix MultiplyTranspose(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns the transpose of the product of M1 and M2.

    | Edit this page View Source

    Negate(XMMatrix)

    Computes the negation of a matrix.

    Declaration
    public static XMMatrix Negate(XMMatrix m)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    Returns
    Type Description
    XMMatrix

    Returns the negation of the matrix.

    | Edit this page View Source

    OrthographicLH(float, float, float, float)

    Builds an orthogonal projection matrix for a left-handed coordinate system.

    Declaration
    public static XMMatrix OrthographicLH(float viewWidth, float viewHeight, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewWidth

    Width of the frustum at the near clipping plane.

    float viewHeight

    Height of the frustum at the near clipping plane.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the orthogonal projection matrix.

    | Edit this page View Source

    OrthographicOffCenterLH(float, float, float, float, float, float)

    Builds a custom orthogonal projection matrix for a left-handed coordinate system.

    Declaration
    public static XMMatrix OrthographicOffCenterLH(float viewLeft, float viewRight, float viewBottom, float viewTop, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewLeft

    Minimum x-value of the view volume.

    float viewRight

    Maximum x-value of the view volume.

    float viewBottom

    Minimum y-value of the view volume.

    float viewTop

    Maximum y-value of the view volume.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the custom orthogonal projection matrix.

    | Edit this page View Source

    OrthographicOffCenterRH(float, float, float, float, float, float)

    Builds a custom orthogonal projection matrix for a right-handed coordinate system.

    Declaration
    public static XMMatrix OrthographicOffCenterRH(float viewLeft, float viewRight, float viewBottom, float viewTop, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewLeft

    Minimum x-value of the view volume.

    float viewRight

    Maximum x-value of the view volume.

    float viewBottom

    Minimum y-value of the view volume.

    float viewTop

    Maximum y-value of the view volume.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the custom orthogonal projection matrix.

    | Edit this page View Source

    OrthographicRH(float, float, float, float)

    Builds an orthogonal projection matrix for a right-handed coordinate system.

    Declaration
    public static XMMatrix OrthographicRH(float viewWidth, float viewHeight, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewWidth

    Width of the frustum at the near clipping plane.

    float viewHeight

    Height of the frustum at the near clipping plane.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the orthogonal projection matrix.

    | Edit this page View Source

    PerspectiveFovLH(float, float, float, float)

    Builds a left-handed perspective projection matrix based on a field of view.

    Declaration
    public static XMMatrix PerspectiveFovLH(float fovAngleY, float aspectHByW, float nearZ, float farZ)
    Parameters
    Type Name Description
    float fovAngleY

    Top-down field-of-view angle in radians.

    float aspectHByW

    Aspect ratio of view-space X:Y.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the perspective projection matrix.

    | Edit this page View Source

    PerspectiveFovRH(float, float, float, float)

    Builds a right-handed perspective projection matrix based on a field of view.

    Declaration
    public static XMMatrix PerspectiveFovRH(float fovAngleY, float aspectHByW, float nearZ, float farZ)
    Parameters
    Type Name Description
    float fovAngleY

    Top-down field-of-view angle in radians.

    float aspectHByW

    Aspect ratio of view-space X:Y.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the perspective projection matrix.

    | Edit this page View Source

    PerspectiveLH(float, float, float, float)

    Builds a left-handed perspective projection matrix.

    Declaration
    public static XMMatrix PerspectiveLH(float viewWidth, float viewHeight, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewWidth

    Width of the frustum at the near clipping plane.

    float viewHeight

    Height of the frustum at the near clipping plane.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the perspective projection matrix.

    | Edit this page View Source

    PerspectiveOffCenterLH(float, float, float, float, float, float)

    Builds a custom version of a left-handed perspective projection matrix.

    Declaration
    public static XMMatrix PerspectiveOffCenterLH(float viewLeft, float viewRight, float viewBottom, float viewTop, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewLeft

    The x-coordinate of the left side of the clipping frustum at the near clipping plane.

    float viewRight

    The x-coordinate of the right side of the clipping frustum at the near clipping plane.

    float viewBottom

    The y-coordinate of the bottom side of the clipping frustum at the near clipping plane.

    float viewTop

    The y-coordinate of the top side of the clipping frustum at the near clipping plane.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the custom perspective projection matrix.

    | Edit this page View Source

    PerspectiveOffCenterRH(float, float, float, float, float, float)

    Builds a custom version of a right-handed perspective projection matrix.

    Declaration
    public static XMMatrix PerspectiveOffCenterRH(float viewLeft, float viewRight, float viewBottom, float viewTop, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewLeft

    The x-coordinate of the left side of the clipping frustum at the near clipping plane.

    float viewRight

    The x-coordinate of the right side of the clipping frustum at the near clipping plane.

    float viewBottom

    The y-coordinate of the bottom side of the clipping frustum at the near clipping plane.

    float viewTop

    The y-coordinate of the top side of the clipping frustum at the near clipping plane.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the custom perspective projection matrix.

    | Edit this page View Source

    PerspectiveRH(float, float, float, float)

    Builds a right-handed perspective projection matrix.

    Declaration
    public static XMMatrix PerspectiveRH(float viewWidth, float viewHeight, float nearZ, float farZ)
    Parameters
    Type Name Description
    float viewWidth

    Width of the frustum at the near clipping plane.

    float viewHeight

    Height of the frustum at the near clipping plane.

    float nearZ

    Distance to the near clipping plane.

    float farZ

    Distance to the far clipping plane.

    Returns
    Type Description
    XMMatrix

    Returns the perspective projection matrix.

    | Edit this page View Source

    Plus(XMMatrix)

    Performance an identity operation on a matrix.

    Declaration
    public static XMMatrix Plus(XMMatrix m)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    Returns
    Type Description
    XMMatrix

    Returns the matrix.

    | Edit this page View Source

    Reflect(XMVector)

    Builds a transformation matrix designed to reflect vectors through a given plane.

    Declaration
    public static XMMatrix Reflect(XMVector reflectionPlane)
    Parameters
    Type Name Description
    XMVector reflectionPlane

    Plane to reflect through.

    Returns
    Type Description
    XMMatrix

    Returns the transformation matrix.

    | Edit this page View Source

    RotationAxis(XMVector, float)

    Builds a matrix that rotates around an arbitrary axis.

    Declaration
    public static XMMatrix RotationAxis(XMVector axis, float angle)
    Parameters
    Type Name Description
    XMVector axis

    Vector describing the axis of rotation.

    float angle

    Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationNormal(XMVector, float)

    Builds a matrix that rotates around an arbitrary normal vector.

    Declaration
    public static XMMatrix RotationNormal(XMVector normalAxis, float angle)
    Parameters
    Type Name Description
    XMVector normalAxis

    Normal vector describing the axis of rotation.

    float angle

    Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationQuaternion(XMVector)

    Builds a rotation matrix from a quaternion.

    Declaration
    public static XMMatrix RotationQuaternion(XMVector quaternion)
    Parameters
    Type Name Description
    XMVector quaternion

    Quaternion defining the rotation.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationRollPitchYaw(float, float, float)

    Builds a rotation matrix based on a given pitch, yaw, and roll (Euler angles).

    Declaration
    public static XMMatrix RotationRollPitchYaw(float pitch, float yaw, float roll)
    Parameters
    Type Name Description
    float pitch

    Angle of rotation around the x-axis, in radians.

    float yaw

    Angle of rotation around the y-axis, in radians.

    float roll

    Angle of rotation around the z-axis, in radians.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationRollPitchYawFromVector(XMVector)

    Builds a rotation matrix based on a vector containing the Euler angles (pitch, yaw, and roll).

    Declaration
    public static XMMatrix RotationRollPitchYawFromVector(XMVector angles)
    Parameters
    Type Name Description
    XMVector angles

    3D vector containing the Euler angles in the order pitch, then yaw, and then roll.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationX(float)

    Builds a matrix that rotates around the x-axis.

    Declaration
    public static XMMatrix RotationX(float angle)
    Parameters
    Type Name Description
    float angle

    Angle of rotation around the x-axis, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationY(float)

    Builds a matrix that rotates around the y-axis.

    Declaration
    public static XMMatrix RotationY(float angle)
    Parameters
    Type Name Description
    float angle

    Angle of rotation around the y-axis, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    RotationZ(float)

    Builds a matrix that rotates around the z-axis.

    Declaration
    public static XMMatrix RotationZ(float angle)
    Parameters
    Type Name Description
    float angle

    Angle of rotation around the z-axis, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

    Returns
    Type Description
    XMMatrix

    Returns the rotation matrix.

    | Edit this page View Source

    Scaling(float, float, float)

    Builds a matrix that scales along the x-axis, y-axis, and z-axis.

    Declaration
    public static XMMatrix Scaling(float scaleX, float scaleY, float scaleZ)
    Parameters
    Type Name Description
    float scaleX

    Scaling factor along the x-axis.

    float scaleY

    Scaling factor along the y-axis.

    float scaleZ

    Scaling factor along the z-axis.

    Returns
    Type Description
    XMMatrix

    Returns the scaling matrix.

    | Edit this page View Source

    ScalingFromVector(XMVector)

    Builds a scaling matrix from a 3D vector.

    Declaration
    public static XMMatrix ScalingFromVector(XMVector scale)
    Parameters
    Type Name Description
    XMVector scale

    3D vector describing the scaling along the x-axis, y-axis, and z-axis.

    Returns
    Type Description
    XMMatrix

    Returns the scaling matrix.

    | Edit this page View Source

    Shadow(XMVector, XMVector)

    Builds a transformation matrix that flattens geometry into a plane.

    Declaration
    public static XMMatrix Shadow(XMVector shadowPlane, XMVector lightPosition)
    Parameters
    Type Name Description
    XMVector shadowPlane

    Reference plane.

    XMVector lightPosition

    4D vector describing the light's position. If the light's w-component is 0.0f, the ray from the origin to the light represents a directional light. If it is 1.0f, the light is a point light.

    Returns
    Type Description
    XMMatrix

    Returns the transformation matrix that flattens the geometry into the plane ShadowPlane.

    | Edit this page View Source

    StoreFloat3X3(out XMFloat3X3)

    Stores an XMMatrix in an XMFloat3X3.

    Declaration
    public void StoreFloat3X3(out XMFloat3X3 destination)
    Parameters
    Type Name Description
    XMFloat3X3 destination

    The destination structure

    | Edit this page View Source

    StoreFloat4X3(out XMFloat4X3)

    Stores an XMMatrix in an XMFloat4X3.

    Declaration
    public void StoreFloat4X3(out XMFloat4X3 destination)
    Parameters
    Type Name Description
    XMFloat4X3 destination

    The destination structure

    | Edit this page View Source

    StoreFloat4X4(out XMFloat4X4)

    Stores an XMMatrix in an XMFloat4X4.

    Declaration
    public void StoreFloat4X4(out XMFloat4X4 destination)
    Parameters
    Type Name Description
    XMFloat4X4 destination

    The destination structure

    | Edit this page View Source

    Subtract(XMMatrix, XMMatrix)

    Computes the difference of two matrices.

    Declaration
    public static XMMatrix Subtract(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns a matrix that is the difference of the two matrices.

    | Edit this page View Source

    ToArray()

    Convert a matrix to an array of float.

    Declaration
    public float[] ToArray()
    Returns
    Type Description
    float[]

    An array of float.

    | Edit this page View Source

    ToEuler(XMMatrix)

    Computes rotation about y-axis (y), then x-axis (x), then z-axis (z).

    Declaration
    public static XMVector ToEuler(XMMatrix matrix)
    Parameters
    Type Name Description
    XMMatrix matrix

    A matrix.

    Returns
    Type Description
    XMVector

    The Euler angles.

    | Edit this page View Source

    Transformation(XMVector, XMVector, XMVector, XMVector, XMVector, XMVector)

    Builds a transformation matrix.

    Declaration
    public static XMMatrix Transformation(XMVector scalingOrigin, XMVector scalingOrientationQuaternion, XMVector scaling, XMVector rotationOrigin, XMVector rotationQuaternion, XMVector translation)
    Parameters
    Type Name Description
    XMVector scalingOrigin

    3D vector describing the center of the scaling.

    XMVector scalingOrientationQuaternion

    Quaternion describing the orientation of the scaling.

    XMVector scaling

    3D vector containing the scaling factors for the x-axis, y-axis, and z-axis.

    XMVector rotationOrigin

    3D vector describing the center of the rotation.

    XMVector rotationQuaternion

    Quaternion describing the rotation around the origin indicated by RotationOrigin.

    XMVector translation

    3D vector describing the translations along the x-axis, y-axis, and z-axis.

    Returns
    Type Description
    XMMatrix

    Returns the transformation matrix.

    | Edit this page View Source

    Transformation2D(XMVector, float, XMVector, XMVector, float, XMVector)

    Builds a 2D transformation matrix in the xy plane.

    Declaration
    public static XMMatrix Transformation2D(XMVector scalingOrigin, float scalingOrientation, XMVector scaling, XMVector rotationOrigin, float rotation, XMVector translation)
    Parameters
    Type Name Description
    XMVector scalingOrigin

    2D vector describing the center of the scaling.

    float scalingOrientation

    Scaling rotation factor.

    XMVector scaling

    2D vector containing the scaling factors for the x-axis and y-axis.

    XMVector rotationOrigin

    2D vector describing the center of the rotation.

    float rotation

    Angle of rotation, in radians.

    XMVector translation

    2D vector describing the translation.

    Returns
    Type Description
    XMMatrix

    Returns the transformation matrix.

    | Edit this page View Source

    Translation(float, float, float)

    Builds a translation matrix from the specified offsets.

    Declaration
    public static XMMatrix Translation(float offsetX, float offsetY, float offsetZ)
    Parameters
    Type Name Description
    float offsetX

    Translation along the x-axis.

    float offsetY

    Translation along the y-axis.

    float offsetZ

    Translation along the z-axis.

    Returns
    Type Description
    XMMatrix

    Returns the translation matrix.

    | Edit this page View Source

    TranslationFromVector(XMVector)

    Builds a translation matrix from a vector.

    Declaration
    public static XMMatrix TranslationFromVector(XMVector offset)
    Parameters
    Type Name Description
    XMVector offset

    3D vector describing the translations along the x-axis, y-axis, and z-axis.

    Returns
    Type Description
    XMMatrix

    Returns the translation matrix.

    | Edit this page View Source

    Transpose()

    Computes the transpose of a matrix.

    Declaration
    public XMMatrix Transpose()
    Returns
    Type Description
    XMMatrix

    Returns the transpose.

    Operators

    | Edit this page View Source

    operator +(XMMatrix, XMMatrix)

    Computes the sum of two matrices.

    Declaration
    public static XMMatrix operator +(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns a matrix that is the sum of the two matrices.

    | Edit this page View Source

    operator /(XMMatrix, float)

    Divide each element of a matrix by a scalar.

    Declaration
    public static XMMatrix operator /(XMMatrix m, float s)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    float s

    The scalar.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    operator ==(XMMatrix, XMMatrix)

    Compares two XMMatrix objects. The result specifies whether the values of the two objects are equal.

    Declaration
    public static bool operator ==(XMMatrix left, XMMatrix right)
    Parameters
    Type Name Description
    XMMatrix left

    The left XMMatrix to compare.

    XMMatrix right

    The right XMMatrix to compare.

    Returns
    Type Description
    bool

    true if the values of left and right are equal; otherwise, false.

    | Edit this page View Source

    implicit operator float[](XMMatrix)

    Convert a matrix to an array of float.

    Declaration
    public static implicit operator float[](XMMatrix value)
    Parameters
    Type Name Description
    XMMatrix value

    The matrix.

    Returns
    Type Description
    float[]

    An array of float.

    | Edit this page View Source

    operator !=(XMMatrix, XMMatrix)

    Compares two XMMatrix objects. The result specifies whether the values of the two objects are unequal.

    Declaration
    public static bool operator !=(XMMatrix left, XMMatrix right)
    Parameters
    Type Name Description
    XMMatrix left

    The left XMMatrix to compare.

    XMMatrix right

    The right XMMatrix to compare.

    Returns
    Type Description
    bool

    true if the values of left and right differ; otherwise, false.

    | Edit this page View Source

    operator *(XMMatrix, XMMatrix)

    Computes the product of two matrices.

    Declaration
    public static XMMatrix operator *(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns the product of M1 and M2.

    | Edit this page View Source

    operator *(XMMatrix, float)

    Multiply each element of a matrix by a scalar.

    Declaration
    public static XMMatrix operator *(XMMatrix m, float s)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    float s

    The scalar.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    operator *(float, XMMatrix)

    Multiply each element of a matrix by a scalar.

    Declaration
    public static XMMatrix operator *(float s, XMMatrix m)
    Parameters
    Type Name Description
    float s

    The scalar.

    XMMatrix m

    The matrix.

    Returns
    Type Description
    XMMatrix

    A matrix.

    | Edit this page View Source

    operator -(XMMatrix, XMMatrix)

    Computes the difference of two matrices.

    Declaration
    public static XMMatrix operator -(XMMatrix m1, XMMatrix m2)
    Parameters
    Type Name Description
    XMMatrix m1

    The first matrix.

    XMMatrix m2

    The second matrix.

    Returns
    Type Description
    XMMatrix

    Returns a matrix that is the difference of the two matrices.

    | Edit this page View Source

    operator -(XMMatrix)

    Computes the negation of a matrix.

    Declaration
    public static XMMatrix operator -(XMMatrix m)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    Returns
    Type Description
    XMMatrix

    Returns the negation of the matrix.

    | Edit this page View Source

    operator +(XMMatrix)

    Performance an identity operation on a matrix.

    Declaration
    public static XMMatrix operator +(XMMatrix m)
    Parameters
    Type Name Description
    XMMatrix m

    The matrix.

    Returns
    Type Description
    XMMatrix

    Returns the matrix.

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright (c) 2014-2022 Jérémy Ansel