bjoernffm/e6b
Composer 安装命令:
composer require bjoernffm/e6b
包简介
E6-B flight computer emulation
README 文档
README
This class provides a first and very basic version of an ordinary E6-B flight computer also nicknamed the "whiz wheel".
An E6-B calculator is a form of circular slide rule used in aviation and one of a very few analog computers in widespread use in the 21st century.
Usage
Imagine we want to fly a course of 220 degrees having a true airspeed of 110 kts. Wind comes from a direction of 270 degrees with a speed of 25 kts. So what's the resulting angle of correction, heading and groundspeed?
<?php use bjoernffm\e6b\Calculator as e6bCalc; require_once __DIR__ . '/vendor/autoload.php'; $result = e6bCalc::getWindCorrectionAngle(220, 110, 270, 25); var_dump($result); /* array(3) { 'windCorrectionAngle' => int(10) 'heading' => int(230) 'groundSpeed' => int(92) } */
Have fun using the E6-B emulation!
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-17