![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Basic geometrical functions
var gm = require('mertan')
, V = require('momentum')
, R = require('rationals')
var line2D_1 = gm.line(V([2,0]),V([4,2]))
, point2D_1 = V([0,-1])
, point2D_2 = [R(-2),R(2)] // this is the same as the above
, line2D_2 = gm.line([R(0),R(3,2)],[R(6),R(-3)])
, line2D_3 = gm.line([R(2),R(1)],[R(3),R(0)])
, line2D_4 = gm.line([R(-3),R(-3)],[R(-20),R(0)])
, line2D_5 = gm.line([R(3),R(-3)],[R(0),R(20)])
, line3D_1 = gm.line(V([3,6,1]),V([3,-4,-1]))
, line3D_2 = gm.line(V([3,6,1]),V([9,-12,-3]))
, line3D_3 = gm.line(V([-1,2,-3]),V([5,-1,2]))
, line3D_4 = gm.line(V([6,-5,4]),V([3,-11,-13]))
line2D_1.has(point2D_1) // true
line2D_1.has(point2D_2) // false
line2D_1.parallelTo(line2D_2) // false
line2D_3.parallelTo(line2D_4) // true
line3D_1.parallelTo(line3D_2) // true
line2D_1.perpendicularTo(line2D_2) // false
line3D_3.perpendicularTo(line3D_4) // true
line3D_2.perpendicularTo(line3D_4) // false
// Quadrance between points
gm.Q([R(3),R(-12)],[R(15),R(4)]) == R(12).times(R(12)).add(R(16).times(R(16))) // R(400)
// Spread between vectors
//spread is 1 when perpendicular
gm.S(line2D_4.vector, line2D_5.vector) // R(1)
//spread is 0 when parallel
gm.S(line3D_1.vector, line3D_2.vector) // R(0)
Points are just regular arrays of rational number objectss.
Lines are represented by one point on them and a direction vector
This gm.line([R(0),R(3,2)],[R(6),R(-3)])
returns an object with
properties base
as the point and vector
as the direction vector.
This is the same line as x+2y=3
.
Returns the rational trigonometry definition of the quadrance as a rational number object
(basicaly square of the distance in Euclidean geometry)
gm.Q([R(3),R(-12)],[R(15),R(4)]) // R(400)
Returns the rational trigonometry definition of the spread as a rational number object
(it is a rational alternative to the concept of angle)
gm.S(line2D_4.vector, line2D_5.vector) // R(1)
npm install mertan
You can use it in the browser with browserify
FAQs
geometrical operations
We found that mertan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.