@vaguevoid/fiasco / math/coordinates / screenToClip
Function: screenToClip()
screenToClip(
screenPosition
,screenDimensions
):Vec3
Defined in: src/math/coordinates.ts:103
Convert the given screen-space screenPosition
using the given screenDimensions
into its homogenous clip space equivalent.
ts
import { Coords, Aspect } from '@vaguevoid/fiasco'
function system(aspect: Aspect) {
const result = Coords.screenToClip({ x: 0, y: 0 }, aspect.xy)
}