Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@quenty/geometryutils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GeometryUtils
Utility functions involving 3D and 2D geometry
Installation
npm install @quenty/geometryutils --saveUsage
Usage is designed to be simple.
SwingTwistUTils
SwingTwistUtils.swingTwist(cf, direction)
SwingTwistUtils.twistAngle(cf, direction)
SurfaceUtils API
SurfaceUtils.getSurfaceCFrame(part, lnormal)
PlaneUtils API
PlaneUtils.rayIntersection(origin, normal, rayOrigin, unitRayDirection)
SphereUtils API
SphereUtils.intersectsRay(sphereCenter, sphereRadius, rayOrigin, rayDirection)
CircleUtils API
CircleUtils.updatePositionToSmallestDistOnCircle(position, target, circumference)
OrthogonalUtils API
OrthogonalUtils.decomposeCFrameToVectors(cframe)
OrthogonalUtils.getClosestVector(options, unitVector)
OrthogonalUtils.snapCFrameTo(cframe, snapToCFrame)
CFrameMirror API
API surface to mirror CFrames