Bug 2757 - Row vectors vs. column vectors
Summary: Row vectors vs. column vectors
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-17 11:29 UTC by Owen Taylor
Modified: 2005-08-22 00:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Owen Taylor 2005-03-17 11:29:57 UTC
We need to decide on a row vector vs. column vector convention;
while we can largely dodge this in documentation, that can
get pretty convoluted and doesn't make things easier for users.

This has an API effect ... the ordering of the arguments for
cairo_matrix_t is right for row vectors and wrong for column
vectors.

(My personal preference is for column vectors
 
 M*x = T*S*x

Correspnds to M(x) = T(S(x))

While x*M = x*S*T doesn't. The column vector convention I think
is also more common in math and marginally more common in 
computer graphics.)
Comment 1 Owen Taylor 2005-08-19 09:00:36 UTC
The decision was row vectors, and the API was validated for that. While 
there is a remaining work item to improve the docs for describing 
transformations, this bug can be closed.
Comment 2 Carl Worth 2005-08-22 17:14:09 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.