Bug 44970 - Add cross product and arithmetic operations to FloatPoint3D
Summary: Add cross product and arithmetic operations to FloatPoint3D
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Kenneth Russell
Depends on:
Blocks: 44729 44991
  Show dependency treegraph
Reported: 2010-08-31 12:01 PDT by Kenneth Russell
Modified: 2010-09-01 10:10 PDT (History)
4 users (show)

See Also:

Patch (4.71 KB, patch)
2010-08-31 12:35 PDT, Kenneth Russell
simon.fraser: review+
kbr: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Russell 2010-08-31 12:01:43 PDT
Currently FloatPoint contains arithmetic operations like addition and subtraction that FloatPoint3D lacks. Additionally, FloatPoint3D is missing useful operations like cross products that are needed for various geometric algorithms.
Comment 1 Kenneth Russell 2010-08-31 12:35:42 PDT
Created attachment 66086 [details]

From the ChangeLog:

Added set, move, and scale operations similar to FloatPoint's, addition and subtraction operators, length, lengthSquared and cross product. These changes have been tested with new code to be added later.
Comment 2 Kenneth Russell 2010-08-31 14:27:50 PDT
Committed r66533: <http://trac.webkit.org/changeset/66533>