@quenty/geometryutils
6.7.1 • Public • Published
Utility functions involving 3D and 2D geometry
npm install @quenty/geometryutils --save
Usage is designed to be simple.
SwingTwistUtils.swingTwist(cf, direction)
SwingTwistUtils.twistAngle(cf, direction)
SurfaceUtils.getSurfaceCFrame(part, lnormal)
PlaneUtils.rayIntersection(origin, normal, rayOrigin, unitRayDirection)
SphereUtils.intersectsRay(sphereCenter, sphereRadius, rayOrigin, rayDirection)
CircleUtils.updatePositionToSmallestDistOnCircle(position, target, circumference)
OrthogonalUtils.decomposeCFrameToVectors(cframe)
OrthogonalUtils.getClosestVector(options, unitVector)
OrthogonalUtils.snapCFrameTo(cframe, snapToCFrame)
API surface to mirror CFrames
CFrameMirror:SetCFrame(reflectOver)
CFrameMirror:Reflect(cframe)
CFrameMirror:ReflectVector(vector)
CFrameMirror:ReflectPoint(point)
CFrameMirror:ReflectRay(ray)
Line.Intersect(a, r, b, s)
Package Sidebar
Install
npm i @quenty/geometryutils
Weekly Downloads