Changes between Initial Version and Version 2 of Ticket #13


Ignore:
Timestamp:
Dec 31, 1969, 4:21:07 PM (54 years ago)
Author:
Peter Powers
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13

    • Property Version changed from to 1.0
    • Property Component changed from build-process to commons
    • Property Milestone changed from to GEM1
  • Ticket #13 – Description

    initial v2  
    77Notes:
    88Everywhere in the code, tests, etc..., depths are entered as positive values. Perfect.
    9 Dir1 = RelativeLocation.getDirection(Loc1, Loc1) returns the correct vector [i.e. for Loc1(D1=2) and Loc2(D2=4), dV = D2-D1 = 2]
     9Dir1 = source:/trunk/src/org/opensha/commons/calc/RelativeLocation.java RelativeLocation.getDirection(Loc1, Loc1) returns the correct vector [i.e. for Loc1(D1=2) and Loc2(D2=4), dV = D2-D1 = 2]
    1010The expectation from vector math is that Loc1 + Dir1 = Loc2. However, RelativeLocation.getLocation(Loc, Dir) does NOT produce this result. Rather than adding the depth component of the Dir1, it subtracts it (D2 = D1-dV = 0). This is wrong.
    1111