@behaver/earth-ssb

The calcultor for earth ssb velocity and position.

Usage no npm install needed!

<script type="module">
  import behaverEarthSsb from 'https://cdn.skypack.dev/@behaver/earth-ssb';
</script>

README

EarthSSB

GitHub license npm version PRs Welcome

简介

EarthSSB 组件库可以用于计算地球相对于太阳系质心(SSB)的位置和速度。

其中包含组件:

安装

使用 npm 安装组件库,在项目目录下执行:

npm i --save @behaver/earth-ssb

安装完成后,调用即可:

const { EarthSSBVelocity, EarthSSBPosition } = require('@behaver/earth-ssb');

用例

const { EarthSSBVelocity } = require('@behaver/earth-ssb');
const { JDateRepository } = require('@behaver/jdate');

let jdr = new JDateRepository(2334345, 'jde'),
    v = new EarthSSBVelocity(jdr);

console.log(v.x, v.y, v.z);

API

详见组件子文档:

许可证书

The MIT license.