linearSystem3d MethodStatic
Solve a linear system:
- x equation:
axx * u + axy * v + axz * w = cx
- y equation:
ayx * u + ayy * v + ayz * w = cy
- z equation:
azx * u + azy * v + azz * w = cz
linearSystem3d(axx: number, axy: number, axz: number, ayx: number, ayy: number, ayz: number, azx: number, azy: number, azz: number, cx: number, cy: number, cz: number, result?: Vector3d): undefined | Vector3d
@returns solution vector (u,v,w) or undefined
if system is singular.
Parameter | Type | Description |
---|---|---|
axx | number | row 0, column 0 coefficient |
axy | number | row 0, column 1 coefficient |
axz | number | row 0, column 1 coefficient |
ayx | number | row 1, column 0 coefficient |
ayy | number | row 1, column 1 coefficient |
ayz | number | row 1, column 2 coefficient |
azx | number | row 2, column 0 coefficient |
azy | number | row 2, column 1 coefficient |
azz | number | row 2, column 2 coefficient |
cx | number | right hand side row 0 coefficient |
cy | number | right hand side row 1 coefficient |
cz | number | right hand side row 2 coefficient |
result | Vector3d | optional result. |
Returns - undefined | Vector3d
solution vector (u,v,w) or undefined
if system is singular.
Defined in
- numerics/SmallSystem.ts Line 316
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.