6.7.0 • Published 9 months ago

@quenty/geometryutils v6.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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

CFrameMirror.new()

CFrameMirror:SetCFrame(reflectOver)

CFrameMirror:Reflect(cframe)

CFrameMirror:ReflectVector(vector)

CFrameMirror:ReflectPoint(point)

CFrameMirror:ReflectRay(ray)

Line API

Line.Intersect(a, r, b, s)

6.6.0

10 months ago

6.7.0

9 months ago

6.5.0

10 months ago

6.4.0

10 months ago

6.3.0

1 year ago

6.2.0

1 year ago

6.1.0

1 year ago

6.0.0

1 year ago

4.0.0

1 year ago

5.0.0

1 year ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.7.0

2 years ago

2.6.0

2 years ago

2.5.0

2 years ago

2.5.1

2 years ago

2.4.0

2 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago