Closed Bug 1838100 Opened 2 years ago Closed 2 years ago

[meta] Use Coord in the interface of BasePoint where appropriate

Categories

(Core :: Graphics, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: botond, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: meta)

This is a meta bug to track using strongly-typed coordinates in the interface of BasePoint where appropriate. Specific changes will be made in dependent bugs.

Blocks: 1838102

This one is complete. The remaining uses of T in the BasePoint interface are:

  • Parameter types of operator* and operator/. Here, the argument represents a scale factor, not a coordinate, so using Coord would be inappropriate.
  • Return types of DotProduct() and LengthSquare(). Here, the value returned is not conceptually a coordinate (its units would be something like "coordinate squared"), so using Coord would again be inappropriate.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.