Giter VIP home page Giter VIP logo

Comments (5)

jonlipsky avatar jonlipsky commented on May 20, 2024

@vpenades You are correct that this could be misleading, and I'm happy to accept a pull request to change the behavior.

Like most things you've commented on, things are implemented the way they are because of specific use cases that I had, and I wasn't designing for anything beyond what I needed.

As an FYI, this code pre-dates Skia, so it's not based on SKMatrix. If you're curious, it was based on Java2D.

from microsoft.maui.graphics.

vpenades avatar vpenades commented on May 20, 2024

Okey, then I would suggest to rename the properties... looking at microsoft's matrices, we have

I would suggest to follow Systen.Numerics.Matrix3x2, so I would rename both the internal fields and the public properties.

Then, I would add these extra properties:

  • SizeF Scale { get; }
  • PointF Translation {get;}

Translation follows the same naming convention as Matrix3x2.

Scale would return the values along the axes of the matrix, so it would return the right scales, regardless of the rotation,

let me know if you agree, or if you need to change something about the proposal, and I'll do the pull request.

from microsoft.maui.graphics.

jonlipsky avatar jonlipsky commented on May 20, 2024

@vpenades I agree with your proposal. I really appreciate your collaboration on this!

from microsoft.maui.graphics.

vpenades avatar vpenades commented on May 20, 2024

Okey, I'll be working on the PR... I think I will also need to add some unit tests

from microsoft.maui.graphics.

vpenades avatar vpenades commented on May 20, 2024

resolved with #189

from microsoft.maui.graphics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.