W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2018

Re: [csswg-drafts] [css-transforms-2] Permit piecewise rotation interpolation when 0deg angle is present #3236

From: Brian Birtles via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 Oct 2018 05:59:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-433295742-1540533570-sysbot+gh@w3.org>
Thanks Alan!

I was actually hoping you could explain this part too:
```cpp
  double dot = a.axis.Dot(b.axis);
  if (dot < 0)
    return false;

  double a_squared = a.axis.LengthSquared();
  double b_squared = b.axis.LengthSquared();
  double error = std::abs(1 - (dot * dot) / (a_squared * b_squared));
  if (error > kAngleEpsilon)
    return false;

  result_axis = a.axis;
  result_angle_a = a.angle;
  result_angle_b = b.angle;
  return true;
```

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/3250#issuecomment-433295742 using your GitHub account
Received on Friday, 26 October 2018 05:59:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:38 UTC