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. Use of operators in QVector3D

Use of operators in QVector3D

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 179 Views 2 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.
  • M Offline
    M Offline
    Munkhtamir
    wrote on last edited by
    #1

    Hello,

    I am a little confused that how to use operators from the desired class.

    I want to use this operator in my class.

    cf4228ea-b541-401f-b43c-0696fb206e37-image.png

    How to implement this operator in class?

    Thank you,

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      QVector3D source;
      QMatrix4x4 matrix;
      QVector3D target = source * matrix;

      You use it the way you'd use any expression operator that takes two arguments.

      The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

      1 Reply Last reply
      3

      • Login

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