- Notifications
You must be signed in to change notification settings - Fork15
[ISSUE #17] Corrected the angle functions to fix the incorrected results strans function according to the documentation.#32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
8 changes: 6 additions & 2 deletionsMakefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
138 changes: 138 additions & 0 deletionsexpected/euler.out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionexpected/init.out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -6,6 +6,6 @@ CREATE EXTENSION pg_sphere; | ||
select pg_sphere_version(); | ||
pg_sphere_version | ||
------------------- | ||
1.2.3 | ||
(1 row) | ||
2 changes: 0 additions & 2 deletionspg_sphere--1.2.2.sql.in
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
File renamed without changes.
2 changes: 1 addition & 1 deletionpg_sphere.control
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# pg_sphere extension | ||
comment = 'spherical objects with useful functions, operators and index support' | ||
default_version = '1.2.3' | ||
module_pathname = '$libdir/pg_sphere' | ||
relocatable = true |
46 changes: 46 additions & 0 deletionssql/euler.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,55 @@ | ||
\set ECHO none | ||
SELECT set_sphere_output_precision(8); | ||
SET extra_float_digits TO -3; | ||
\set ECHO all | ||
-- checking Euler transformation operators | ||
SELECT strans '-10d,0d,10d,ZZZ' = '-10d,0d,10d,XXX' ; | ||
SELECT strans '-40d,0d,40d,ZZZ' <> '-40d,0d,40d,XXX' ; | ||
SELECT strans ( 20.0*pi()/180.0, -270.0*pi()/180.0, 70.5*pi()/180.0, 'XZY' ); | ||
SELECT theta( strans ( 20.0*pi()/180.0, -270.0*pi()/180.0, 70.5*pi()/180.0, 'XZY' ) ); | ||
SELECT psi( strans ( 20.0*pi()/180.0, -270.0*pi()/180.0, 70.5*pi()/180.0, 'XZY' ) ); | ||
SELECT phi( strans ( 20.0*pi()/180.0, -270.0*pi()/180.0, 70.5*pi()/180.0, 'XZY' ) ); | ||
SELECT theta( strans( '20d, 30d, 40d, XZY' ) ); | ||
SELECT psi( strans( '20d, 30d, 40d, XZY' ) ); | ||
SELECT phi( strans( '20d, 30d, 40d, XZY' ) ); | ||
SELECT strans( '2d 20m, 10d, 0' ); | ||
SELECT theta( strans( '2d 20m, 10d, 0' ) ); | ||
SELECT psi( strans( '2d 20m, 10d, 0' ) ); | ||
SELECT phi( strans( '2d 20m, 10d, 0' ) ); | ||
SELECT strans ( '10d, 90d, 270d, ZXZ' ); | ||
SELECT theta( strans ( '10d, 90d, 270d, ZXZ' ) ); | ||
SELECT psi( strans ( '10d, 90d, 270d, ZXZ' ) ); | ||
SELECT phi( strans ( '10d, 90d, 270d, ZXZ' ) ); | ||
SELECT - strans ( '20d, 50d, 80d, XYZ' ); | ||
SELECT theta( - strans ( '20d, 50d, 80d, XYZ' ) ); | ||
SELECT psi( - strans ( '20d, 50d, 80d, XYZ' ) ); | ||
SELECT phi( - strans ( '20d, 50d, 80d, XYZ' ) ); | ||
SELECT strans( '90d, 60d, 30d' ); | ||
SELECT theta( strans( '90d, 60d, 30d' ) ); | ||
SELECT psi( strans( '90d, 60d, 30d' ) ); | ||
SELECT phi( strans( '90d, 60d, 30d' ) ); |
7 changes: 3 additions & 4 deletionssrc/euler.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletionsupgrade_scripts/pg_sphere--1.2.2--1.2.3.sql.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- Nothing to upgrade in the schema |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.