@quenty/geometryutils
v6.7.1
Published
Utility functions involving 3D and 2D geometry
Downloads
303
Readme
GeometryUtils
Utility functions involving 3D and 2D geometry
Installation
npm install @quenty/geometryutils --save
Usage
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