The NX/NJ series calculation library has been ported to the CS/CJ series
The calculations are explained in the NX/NJ series calculation library, so see there
List
2D
Name
NJ/NX FUN name
Ported to CS/CJ FB
Right triangle
RightTriangle
〇
Polygon enclosed by points
PolygonArea
-
Inscribed circle of a triangle
TriangleIncircle
〇
Circumscribed circle of a triangle
TriangleCircumcircle
〇
Inscribed circle of a regular polygon
RegularPolygonIncircle
〇
Circumscribed circle of a regular polygon
RegularPolygonCircumcircle
〇
Intersection and angle of two lines
Intersection
〇
Distance and angle between two points
LinearPtoP
〇
Rotation around the origin
PointRotate
〇
Cartesian to polar coordinates
PolarCoordinates
〇
Polar to Cartesian coordinates
CartesianCoordinates
〇
Center of a circle through three points
GetCenter2D
〇
3D - space
Name
NJ/NX FUN name
Ported to CS/CJ FB
Distance between two points
Distance3D
〇
Center of a circle through three points
GetCenter3D
-
3D - vectors
Name
NJ/NX FUN name
Ported to CS/CJ FB
Create
Vector3d
〇
Addition
vecADD
〇
Subtraction
vecSUB
〇
Scalar multiplication
vecMUL
〇
Hadamard product
vecMultiply
〇
Cross product
vecCROSS
〇
Comparison
vecEQ
〇
Dot product
vecDot
〇
Norm
vecNorm
〇
3D - rotation
Name
NJ/NX FUN name
Ported to CS/CJ FB
Rotation about each axis
matRotateXYZ
〇
Convert Euler angles to a rotation matrix
EulerToMatrix
〇
Rotation with quaternions
qtRotate
-
3D - rotation conversion
Name
NJ/NX FUN name
Ported to CS/CJ FB
Euler angles → rotation matrix
EulerToMatrix
〇
Rotation matrix → Euler angles
MatrixToEuler
〇
Euler angles → quaternion
EulerToQuaternion
-
Quaternion → Euler angles
QuaternionToEuler
-
Quaternion → rotation matrix
QuaternionToMatrix
-
Rotation matrix → quaternion
MatrixToQuaternion
-
Hyperbolic functions
Name
NJ/NX FUN name
Ported to CS/CJ FB
sinh
sinh
〇
cosh
cosh
〇
tanh
tanh
〇
sech
sech
〇
csch
csch
〇
coth
coth
〇
Inverse hyperbolic functions
Name
NJ/NX FUN name
Ported to CS/CJ FB
asinh
asinh
〇
acosh
acosh
〇
atanh
atanh
〇
asech
asech
〇
acsch
acsch
〇
acoth
acoth
〇
Matrices
Name
NJ/NX FUN name
Ported to CS/CJ FB
Addition
matADD
mat3x3ADD
Subtraction
mat3SUB
mat3x33SUB
Scalar multiplication
matMUL
mat3x3MUL
Hadamard product
matMultiply
mat3x3Multiply
Dot product
matDot
mat3x3Dot
Cross product
matCross
mat3x3Cross
Transpose
matT
mat3x3T
Inverse matrix
matInv
-
Determinant calculation
matDet
mat3x3Det
Quaternion
Name
NJ/NX FUN name
Ported to CS/CJ FB
Create
Quaternion
-
Comparison
qtEQ
-
Addition
qtADD
-
Subtraction
qtSUB
-
Cross product
qtCross
-
Conjugate
qtCQ
-
Set real part
qtSetReal
-
Set imaginary part
qtSetImag
-
Other
Name
NJ/NX FUN name
Ported to CS/CJ FB
ATAN2
atan2
〇
Solving a system of three linear equations
gauss
-
Download
These sample ladders use variables for inputs and outputs, so when copying them, use automatic address allocation or allocate free addresses