Skip to main content
Home

A comprehensive math library for TypeScript applications

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
82%
Published
3 months ago (0.0.8)
class LatLong

Constructors

new
LatLong(
lat?: number,
long?: number,
)

Properties

Methods

set(latLong: ReadonlySimpleLatLong): void
setData(
lat: number,
long: number,
): void

Static Methods

cloneReadonlySimple(latLong: ReadonlySimpleLatLong): ReadonlySimpleLatLong
cloneSimple(latLong: ReadonlySimpleLatLong): SimpleLatLong
createReadonlySimple(
lat: number,
long: number,
): ReadonlySimpleLatLong
createSimple(
lat: number,
long: number,
): SimpleLatLong
equals(
vecA: ReadonlySimpleLatLong,
vecB: ReadonlySimpleLatLong,
): boolean
isLatLong<Item extends ReadonlySimpleLatLong>(item: Item | any): item is Item
toString(
latLong?: unknown,
fixedSize?: number,
): string

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@g43/math

Import symbol

import { LatLong } from "@g43/math";
or

Import directly with a jsr specifier

import { LatLong } from "jsr:@g43/math";

Add Package

pnpm i jsr:@g43/math
or (using pnpm 10.8 or older)
pnpm dlx jsr add @g43/math

Import symbol

import { LatLong } from "@g43/math";

Add Package

yarn add jsr:@g43/math
or (using Yarn 4.8 or older)
yarn dlx jsr add @g43/math

Import symbol

import { LatLong } from "@g43/math";

Add Package

vlt install jsr:@g43/math

Import symbol

import { LatLong } from "@g43/math";

Add Package

npx jsr add @g43/math

Import symbol

import { LatLong } from "@g43/math";

Add Package

bunx jsr add @g43/math

Import symbol

import { LatLong } from "@g43/math";