vasya/pg-conversions

Conversions PHP Library

dev-master 2021-12-29 16:18 UTC

This package is auto-updated.

Last update: 2025-06-29 02:07:45 UTC


README

Constants

  • minuteOfAngle - Inches at 100 yards
  • mil - Inches at 100 yards
  • pi

Functions

  • degreesToRadians(degrees) - Converts from a degree to a radian angle.
  • inchesToIPHY(inches, currentRange) - Converts from inches to inches per 100 yards
  • inchesToMil(inches, currentRange) - Converts from inches to milliradians.
  • inchesToMinutesOfAngle(inches, currentRange) - Converts from inches to minutes of angle (MoA).
  • isEven(input) - Returns true if the inputed integer is an even number.
  • metersToYards(meters)
  • milesPerHourToInchesPerSecond(inputVelocityMPH) - Converts from a miles per hour (MPH) to inches per second.
  • radiansToDegrees(radians) - Converts from a radian ro a degree angle.
  • sec(angle) - Secant
  • sizeToDistance(actualTargetSizeInches, reticleViewedTargetSizeMils) -
  • yardsToMeters(yards)