GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [css-geometry] Transforming a point with a matrix has things backwards somewhere · Issue #359 · w3c/fxtf-drafts

[css-geometry] Transforming a point with a matrix has things backwards somewhere #359

New issue
Copy link
New issue
Copy link
Open
Open
[css-geometry] Transforming a point with a matrix has things backwards somewhere#359
Copy link
Labels
geometry-1

Description

@bzbarsky
bzbarsky
opened on Jul 23, 2019
Issue body actions

https://drafts.fxtf.org/geometry/#transform-a-point-with-a-matrix says:

  1. Let pointVector be a new column vector with the elements being x, y, z, and w, respectively.
  2. Set pointVector to pointVector post-multiplied by matrix.

Where "post-multiplied" links to https://drafts.fxtf.org/geometry/#post-multiply which says:

Term A post-multiplied by term B is equal to A · B.

So this is doing v * M where v is a length-4 column vector and M is a 4x4 matrix. That's not a legal multiplication: the sizes don't match, right?

Does this algorithm mean to do M * v (so s/post-multiplied/pre-multiplied/ or switching the order of args to "post-multiplied" around) or does this algorithm mean to have v be a row vector?

Looking at what implementations do here, it looks to me like Blink does M * v. So does Gecko, as far as I can tell.

Activity

  1. bzbarsky commented on Jul 23, 2019

    @bzbarsky
    bzbarsky
    on Jul 23, 2019
    Author
    More actions

    Looks like this might be a duplicate of #294 ?

  2. dirkschulze
    added
    geometry-1
    on Sep 16, 2019
  3. kdashg
    added a commit that references this issue on Feb 17, 2021

    Column vectors are pre-multiplied by matrices.

    e07beef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    geometry-1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.