-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from nden/rotations
Add schema for 3D rotations.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,36 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" | ||
id: "http://stsci.edu/schemas/asdf/0.1.0/transform/rotate3d" | ||
tag: "tag:stsci.edu:asdf/0.1.0/transform/rotate3d" | ||
title: > | ||
Rotation in 3D space. | ||
description: | | ||
Rotation by 3 Euler angles. | ||
Invertability: All ASDF tools are required to be able to compute the | ||
analytic inverse of this transform. | ||
examples: | ||
- | ||
- The three Euler angles are 12.3, 34 and -1.2 in degrees. | ||
- | | ||
!transform/rotate3d | ||
phi: 12.3 | ||
theta: 34 | ||
psi: -1.2 | ||
allOf: | ||
- $ref: transform | ||
- type: object | ||
properties: | ||
phi: | ||
type: number | ||
description: Angle, in degrees. | ||
theta: | ||
type: number | ||
description: Angle, in degrees. | ||
psi: | ||
type: number | ||
description: Angle, in degrees. | ||
required: [phi, theta, psi] |