skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Struct Matrix

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public struct Matrix

Constructors

Matrix(Double, Double, Double, Double, Double, Double)

Declaration
public Matrix(double m11, double m12, double m21, double m22, double offsetX, double offsetY)
Parameters
System.Double m11

System.Double m12

System.Double m21

System.Double m22

System.Double offsetX

System.Double offsetY

Properties

Determinant

Declaration
public double Determinant { get; }
Property Value
System.Double

HasInverse

Declaration
public bool HasInverse { get; }
Property Value
System.Boolean

Identity

Declaration
public static Matrix Identity { get; }
Property Value
Matrix

IsIdentity

Declaration
public bool IsIdentity { get; }
Property Value
System.Boolean

M11

Gets or sets the value of the first row and first column of this System.Windows.Media.Matrix structure.

Declaration
public double M11 { get; set; }
Property Value
System.Double

The value of the first row and first column of this System.Windows.Media.Matrix. The default value is 1.

M12

Gets or sets the value of the first row and second column of this System.Windows.Media.Matrix structure.

Declaration
public double M12 { get; set; }
Property Value
System.Double

The value of the first row and second column of this System.Windows.Media.Matrix. The default value is 0.

M21

Gets or sets the value of the second row and first column of this System.Windows.Media.Matrix structure.

Declaration
public double M21 { get; set; }
Property Value
System.Double

The value of the second row and first column of this System.Windows.Media.Matrix. The default value is 0.

M22

Gets or sets the value of the second row and second column of this System.Windows.Media.Matrix structure.

Declaration
public double M22 { get; set; }
Property Value
System.Double

The value of the second row and second column of this System.Windows.Media.Matrix structure. The default value is 1.

OffsetX

Gets or sets the value of the third row and first column of this System.Windows.Media.Matrix structure.

Declaration
public double OffsetX { get; set; }
Property Value
System.Double

The value of the third row and first column of this System.Windows.Media.Matrix structure. The default value is 0.

OffsetY

Gets or sets the value of the third row and second column of this System.Windows.Media.Matrix structure.

Declaration
public double OffsetY { get; set; }
Property Value
System.Double

The value of the third row and second column of this System.Windows.Media.Matrix structure. The default value is 0.

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.ValueType.Equals(System.Object)

Equals(Matrix)

Declaration
public bool Equals(Matrix value)
Parameters
Matrix value

Returns
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.ValueType.GetHashCode()

Invert()

Declaration
public void Invert()

Rotate(Double, Double, Double)

Declaration
public Matrix Rotate(double angle, double centerX = 0, double centerY = 0)
Parameters
System.Double angle

System.Double centerX

System.Double centerY

Returns
Matrix

Scale(Double, Double, Double, Double)

Declaration
public Matrix Scale(double scaleX, double scaleY, double centerX = 0, double centerY = 0)
Parameters
System.Double scaleX

System.Double scaleY

System.Double centerX

System.Double centerY

Returns
Matrix

ScaleAppend(Double, Double, Double, Double)

Declaration
public Matrix ScaleAppend(double scaleX, double scaleY, double centerX = 0, double centerY = 0)
Parameters
System.Double scaleX

System.Double scaleY

System.Double centerX

System.Double centerY

Returns
Matrix

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.ValueType.ToString()

Transform(Double)

Declaration
public double Transform(double d)
Parameters
System.Double d

Returns
System.Double

Transform(Point)

Declaration
public Point Transform(Point point)
Parameters
Point point

Returns
Point

Transform(Rect)

Declaration
public Rect Transform(Rect rect)
Parameters
Rect rect

Returns
Rect

Translate(Double, Double)

Declaration
public void Translate(double offsetX, double offsetY)
Parameters
System.Double offsetX

System.Double offsetY

Operators

Equality(Matrix, Matrix)

Declaration
public static bool operator ==(Matrix a, Matrix b)
Parameters
Matrix a

Matrix b

Returns
System.Boolean

Inequality(Matrix, Matrix)

Declaration
public static bool operator !=(Matrix a, Matrix b)
Parameters
Matrix a

Matrix b

Returns
System.Boolean

Multiply(Matrix, Matrix)

Declaration
public static Matrix operator *(Matrix matrix1, Matrix matrix2)
Parameters
Matrix matrix1

Matrix matrix2

Returns
Matrix

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.