Changes between Initial Version and Version 2 of Ticket #13
- Timestamp:
- Dec 31, 1969, 4:21:07 PM (54 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13
-
Property
Version
changed from
to
1.0
-
Property
Component
changed from
build-process
tocommons
-
Property
Milestone
changed from
to
GEM1
-
Property
Version
changed from
-
Ticket #13 – Description
initial v2 7 7 Notes: 8 8 Everywhere 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]9 Dir1 = 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] 10 10 The 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. 11 11