Change KCL stdlib floating-point results to not be platform dependent (#7499)
* Add libm dependency * Change to use libm for trig functions * Remove redactions for floating point * Update output * Use clippy to prevent stdlib math sneaking back in --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
This commit is contained in:
		@ -60,7 +60,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "path": "[uuid]",
 | 
			
		||||
        "to": {
 | 
			
		||||
          "x": 0.0,
 | 
			
		||||
          "y": 31.881,
 | 
			
		||||
          "y": 31.88125,
 | 
			
		||||
          "z": 0.0
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
@ -123,7 +123,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 22.631,
 | 
			
		||||
            "x": 22.63125,
 | 
			
		||||
            "y": -10.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -157,8 +157,8 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 32.631,
 | 
			
		||||
            "y": 10.941,
 | 
			
		||||
            "x": 32.63125,
 | 
			
		||||
            "y": 10.940625,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": false
 | 
			
		||||
@ -174,8 +174,8 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 102.631,
 | 
			
		||||
            "y": 10.941,
 | 
			
		||||
            "x": 102.63125,
 | 
			
		||||
            "y": 10.940625,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": false
 | 
			
		||||
@ -208,8 +208,8 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 32.631,
 | 
			
		||||
            "y": 30.941,
 | 
			
		||||
            "x": 32.63125,
 | 
			
		||||
            "y": 30.940625,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": false
 | 
			
		||||
@ -225,8 +225,8 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 32.631,
 | 
			
		||||
            "y": 41.881,
 | 
			
		||||
            "x": 32.63125,
 | 
			
		||||
            "y": 41.88125,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": false
 | 
			
		||||
@ -243,7 +243,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": 41.881,
 | 
			
		||||
            "y": 41.88125,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": false
 | 
			
		||||
@ -259,7 +259,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": -32.631,
 | 
			
		||||
            "x": -32.63125,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -277,7 +277,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": -10.941,
 | 
			
		||||
            "y": -10.940625,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": true
 | 
			
		||||
@ -345,7 +345,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": -20.941,
 | 
			
		||||
            "y": -20.940625,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": true
 | 
			
		||||
@ -395,7 +395,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "arc",
 | 
			
		||||
          "center": {
 | 
			
		||||
            "x": -10.75,
 | 
			
		||||
            "x": -10.749999999999995,
 | 
			
		||||
            "y": 20.0
 | 
			
		||||
          },
 | 
			
		||||
          "radius": 11.88125,
 | 
			
		||||
@ -421,7 +421,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "y": 31.881,
 | 
			
		||||
            "y": 31.88125,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": false
 | 
			
		||||
@ -522,7 +522,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "type": "move_path_pen",
 | 
			
		||||
        "path": "[uuid]",
 | 
			
		||||
        "to": {
 | 
			
		||||
          "x": 32.631,
 | 
			
		||||
          "x": 32.63125,
 | 
			
		||||
          "y": 0.0,
 | 
			
		||||
          "z": 0.0
 | 
			
		||||
        }
 | 
			
		||||
@ -545,7 +545,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": -10.0,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "y": 0.0000000000000012246467991473533,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": true
 | 
			
		||||
@ -561,7 +561,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": -0.0,
 | 
			
		||||
            "x": -0.0000000000000018369701987210296,
 | 
			
		||||
            "y": -10.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -579,7 +579,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 10.0,
 | 
			
		||||
            "y": -0.0,
 | 
			
		||||
            "y": -0.0000000000000012246467991473533,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
          "relative": true
 | 
			
		||||
@ -595,7 +595,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 32.631,
 | 
			
		||||
            "x": 32.63125,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -693,7 +693,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "type": "move_path_pen",
 | 
			
		||||
        "path": "[uuid]",
 | 
			
		||||
        "to": {
 | 
			
		||||
          "x": -32.631,
 | 
			
		||||
          "x": -32.63125,
 | 
			
		||||
          "y": 0.0,
 | 
			
		||||
          "z": 0.0
 | 
			
		||||
        }
 | 
			
		||||
@ -732,7 +732,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "x": 0.0000000000000006123233995736766,
 | 
			
		||||
            "y": -10.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -766,7 +766,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": -32.631,
 | 
			
		||||
            "x": -32.63125,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -864,7 +864,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "type": "move_path_pen",
 | 
			
		||||
        "path": "[uuid]",
 | 
			
		||||
        "to": {
 | 
			
		||||
          "x": -32.631,
 | 
			
		||||
          "x": -32.63125,
 | 
			
		||||
          "y": 0.0,
 | 
			
		||||
          "z": 0.0
 | 
			
		||||
        }
 | 
			
		||||
@ -886,7 +886,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 65.263,
 | 
			
		||||
            "x": 65.2625,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -903,7 +903,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": 0.0,
 | 
			
		||||
            "x": 0.0000000000000006123233995736766,
 | 
			
		||||
            "y": -10.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -920,7 +920,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": -65.263,
 | 
			
		||||
            "x": -65.2625,
 | 
			
		||||
            "y": -0.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
@ -937,7 +937,7 @@ description: Artifact commands router-template-cross-bar.kcl
 | 
			
		||||
        "segment": {
 | 
			
		||||
          "type": "line",
 | 
			
		||||
          "end": {
 | 
			
		||||
            "x": -32.631,
 | 
			
		||||
            "x": -32.63125,
 | 
			
		||||
            "y": 0.0,
 | 
			
		||||
            "z": 0.0
 | 
			
		||||
          },
 | 
			
		||||
 | 
			
		||||
@ -42,7 +42,7 @@ description: Operations executed router-template-cross-bar.kcl
 | 
			
		||||
      "name": "templateDiameter",
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Number",
 | 
			
		||||
        "value": 0.688,
 | 
			
		||||
        "value": 0.6875,
 | 
			
		||||
        "ty": {
 | 
			
		||||
          "type": "Known",
 | 
			
		||||
          "type": "Length",
 | 
			
		||||
@ -236,7 +236,7 @@ description: Operations executed router-template-cross-bar.kcl
 | 
			
		||||
      "name": "templateGap",
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Number",
 | 
			
		||||
        "value": 0.074,
 | 
			
		||||
        "value": 0.07406496062992127,
 | 
			
		||||
        "ty": {
 | 
			
		||||
          "type": "Known",
 | 
			
		||||
          "type": "Length",
 | 
			
		||||
@ -265,7 +265,7 @@ description: Operations executed router-template-cross-bar.kcl
 | 
			
		||||
      "name": "distanceToInsideEdge",
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Number",
 | 
			
		||||
        "value": 1.285,
 | 
			
		||||
        "value": 1.2846948818897639,
 | 
			
		||||
        "ty": {
 | 
			
		||||
          "type": "Known",
 | 
			
		||||
          "type": "Length",
 | 
			
		||||
@ -636,7 +636,7 @@ description: Operations executed router-template-cross-bar.kcl
 | 
			
		||||
      "name": "PI",
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Number",
 | 
			
		||||
        "value": 3.142,
 | 
			
		||||
        "value": 3.141592653589793,
 | 
			
		||||
        "ty": {
 | 
			
		||||
          "type": "Unknown"
 | 
			
		||||
        }
 | 
			
		||||
@ -652,7 +652,7 @@ description: Operations executed router-template-cross-bar.kcl
 | 
			
		||||
      "name": "E",
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Number",
 | 
			
		||||
        "value": 2.718,
 | 
			
		||||
        "value": 2.718281828459045,
 | 
			
		||||
        "ty": {
 | 
			
		||||
          "type": "Known",
 | 
			
		||||
          "type": "Count"
 | 
			
		||||
@ -669,7 +669,7 @@ description: Operations executed router-template-cross-bar.kcl
 | 
			
		||||
      "name": "TAU",
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Number",
 | 
			
		||||
        "value": 6.283,
 | 
			
		||||
        "value": 6.283185307179586,
 | 
			
		||||
        "ty": {
 | 
			
		||||
          "type": "Known",
 | 
			
		||||
          "type": "Count"
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user