Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTransform translate dx
Forum Updated to NodeBB v4.3 + New Features

QTransform translate dx

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 115 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aiyolo
    wrote on last edited by
    #1

    When using QTransform for coordinate transformation, I need to transform the coordinate point (1,1) to (5,5). If I have already scaled the QTransform t by a factor of 3, what should the translation amount be set to now, and why?

    Pl45m4P 1 Reply Last reply
    0
    • A aiyolo

      When using QTransform for coordinate transformation, I need to transform the coordinate point (1,1) to (5,5). If I have already scaled the QTransform t by a factor of 3, what should the translation amount be set to now, and why?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @aiyolo

      Merge both transformation (scaling by factor 3 and translation to 5/5) and apply the resulting transformation to your item/point.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved