]> gitweb.factorcode.org Git - factor.git/commitdiff
math.affine-transforms: slight different on windows
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Feb 2024 02:32:58 +0000 (18:32 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Feb 2024 02:32:58 +0000 (18:32 -0800)
extra/math/affine-transforms/affine-transforms-docs.factor

index ccea7eeba23dd48b282018200d7aee87863e46e0..c5ca61d67bf4e67e43d71e581df43d1751be9765 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2018 Björn Lindqvist
 ! See https://factorcode.org/license.txt for BSD license
-USING: help.markup help.syntax ;
+USING: help.markup help.syntax kernel literals system ;
 IN: math.affine-transforms
 
 ARTICLE: "math.affine-transforms" "Affine Transformations of 2d Vectors"
@@ -9,7 +9,10 @@ ARTICLE: "math.affine-transforms" "Affine Transformations of 2d Vectors"
   "Creates a 45 degree counter clock-wise rotation matrix and applies it to a vector:"
   { $example
     "USING: math.affine-transforms math.functions prettyprint ;\n45 deg>rad <rotation> { 0 4 } a.v ."
-    "{ -2.82842712474619 2.8284271247461903 }"
+    ! XXX: investigate this windows vs mac/linux difference
+    $[ os windows?
+    "{ -2.8284271247461903 2.8284271247461903 }"
+    "{ -2.82842712474619 2.8284271247461903 }" ? ]
   }
   "Applies a combined scaling and translation transform to a vector:"
   { $example