npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gov.nasa.jpl.honeycomb/cahvore-utilities

v0.0.6

Published

Set of cahvore transformation functions ported from RSVP C++ implementations.

Readme

CAHVORE Transformation Utilities

Set of functions for converting a 2D camera coordinate to a camera ray ported from the original C implementation (JPL internal only).

Original implementation by Todd Litwin.

See also https://github.com/NASA-AMMOS/CameraModelUtilsJS/tree/main/src/cahvore-utilities

API

Functions

cmod_cahvore_2d_to_3d_general

cmod_cahvore_2d_to_3d_general(
	pos2 : Vector2, 
	linearity : Number, 
	c : Vector3, 
	a : Vector3, 
	h : Vector3, 
	v : Vector3, 
	o : Vector3, 
	r : Vector3, 
	e : Vector3, 
	pos3 : Vector3 = null, 
	uvec3 : Vector3 = null
) : { pos3, uvec3 }

Algorithm by Todd Litwin Partially ported from cmod_cahvore.

This function projects a 2D image point out into 3D using the camera model parameters provided. Note this port does not calculate partial derivatives of pos3 to pos2 or uvec3 to uvec2

cmod_cahv_2d_to_3d

cmod_cahv_2d_to_3d(
	pos2 : Vector2, 
	c : Vector3, 
	a : Vector3, 
	h : Vector3, 
	v : Vector3, 
	pos3 : Vector3 = null, 
	uvec3 : Vector3 = null
) : { pos3, uvec3 }

Algorithm by Todd Litwin Partially ported from cmod_cahv.

Uses the Yakimovsky & Cunningham camera model known locally as CAHV This function projects a 2D image point out into 3D using the camera model parameters provided. Note it does not output the partial derivative of uvec3 to pos2

cmod_cahvor_2d_to_3d

cmod_cahvor_2d_to_3d(
	pos2 : Vector2, 
	c : Vector3, 
	a : Vector3, 
	h : Vector3, 
	v : Vector3, 
	o : Vector3, 
	r : Vector3, 
	pos3 : Vector3 = null, 
	uvec3 : Vector3 = null
) : { pos3, uvec3 }

Algorithm by Todd Litwin Partially ported from cmod_cahvor.

Uses the Yakimovsky & Cunningham camera model known locally as CAHVOR This function projects a 2D image point out into 3D using the camera model parameters provided. Note it does not output the partial derivative of uvec3 to pos2

getRay

getRay( model : Object, sample : Vector2, outRay : Ray ) : void

Returns the outgoing ray from the camera model given an image sample coordinate. Internally calls the appropriate camera model to ray function.

getLinearFrustumInfo

getLinearFrustumInfo( model : Object ) : LinearFrustumInfo

Function takes a camera model and returns an object describing the resulting local camera frame and minimum and maximum frustums.

frameBoundsToProjectionMatrix

frameBoundsToProjectionMatrix(
	frameBounds : FrameBounds, 
	near : Number, 
	far : Number, 
	target : Matrix4
) : target

Function that takes a frame bounds description of a bounding box 1m out in the camera frame and sets the "target" matrix to an off axis projection matrix with the apex at the current origin.

FrameBounds

left

left : Number

right

right : Number

top

top : Number

bottom

bottom : Number

LinearFrustumInfo

frame

frame : Matrix4

The transformation frame of the linear camera model frustums. Equivalent to "Camera.matrix".

minFrameBounds

minFrameBounds : FrameBounds

The bounds that are completely encompassed the cahvore model at the minimal extents 1m out in the given frame.

maxFrameBounds

maxFrameBounds : FrameBounds

The bounds that completely encompass the cahvore model at the maximum extents 1m out in the given frame.