Bug 44970

Summary: Add cross product and arithmetic operations to FloatPoint3D
Product: WebKit Reporter: Kenneth Russell <kbr>
Component: Layout and RenderingAssignee: Kenneth Russell <kbr>
Severity: Normal CC: cmarrin, jamesr, senorblanco, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 44729, 44991    
Description Flags
Patch simon.fraser: review+, kbr: commit-queue-

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>