Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7893181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:03:59+00:00 2026-06-03T07:03:59+00:00

Essentially I am looking for a PHP function or equation that will output the

  • 0

Essentially I am looking for a PHP function or equation that will output the Matrix values used in SVG transform.

I have hunted high and low and unfortunately have found nothing.

I am well aware of the rotate() and scale function() however these are not what I am in need of.

I need to be able to take a rotation angle in degrees along with x/y scale data and output a series of values in SVG transform format matrix(a,b,c,d,e,f)

Ideally I would like to be doing this in PHP but as stated, a standard mathematical equation would help also.

Hopefully someone can point me in the right direction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:04:00+00:00Added an answer on June 3, 2026 at 7:04 am

    You can compute the values by multiplying the matrices of the single transformations. Have a look in the SVG specification to find their definition:

    rot(a)       := matrix(cos(a), sin(a), -sin(a), cos(a), 0, 0)
    scale(sx,sy) := matrix(sx, 0, 0, sy, 0, 0)
    

    Depending on the order the transformations should be applied (rotation before scaling vs. scaling before rotation), you get different matrices:

    rot(a)*scale(sx,sy) = matrix(sx*cos(a), sx*sin(a), -sy*sin(a), sy*cos(a), 0, 0)
    scale(sx,sy)*rot(a) = matrix(sx*cos(a), sy*sin(a), -sx*sin(a), sy*cos(a), 0, 0)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a library that could be used to manipulate audio files. Essentially
I'm looking for some direction on a script that I'd like to build. Essentially,
Hey all, I've created a widget that will essentially unlock a music track, providing
I'm looking to implement fuzzy search for a small PHP/MySQL application. Specifically, I have
I am currently creating a site(php,css,html,ajax,MySql) which will have heavy user usage of space(regarding
Essentially I'm looking for something that models a clock and can be incremented forward
I'm looking for a library (or preferably built into java) that will able to
quite a vague question i'm looking to develop an application that essentially allows the
Essentially what I'm looking for is a function with the following prototype: string getln(istream);
I'm looking for suggestions for a beginner level ASP/XML test. Essentially I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.