Skip to content

Commit

Permalink
Add FuzzyEq method
Browse files Browse the repository at this point in the history
  • Loading branch information
4igz committed Jan 20, 2025
1 parent 90c174f commit 7b9a5a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,10 @@ interface CFrame {
ToOrientation(this: CFrame): LuaTuple<[number, number, number]>;
/** Returns a tuple of a Vector3 and a number which represent the rotation of the CFrame in the axis-angle representation */
ToAxisAngle(this: CFrame): LuaTuple<[Vector3, number]>;
/** Returns true if the other CFrame is sufficiently close to this CFrame in both position and rotation. The eps value is used to control the tolerance for this similarity. This value is optional and should be a small positive value if provided. The similarity for position is component-wise, and for rotation uses a fast approximation of the angle difference.
@param epsilon Default: 1e-5
*/
FuzzyEq(this: CFrame, other: CFrame, epsilon?: number): boolean
}

interface CFrameConstructor {
Expand Down

0 comments on commit 7b9a5a6

Please sign in to comment.