! See https://factorcode.org/license.txt for BSD license
USING: accessors colors colors.lab colors.luv colors.xyz kernel
-math math.functions math.libm math.trig ;
+math math.functions math.libm ;
IN: colors.lch
USING: accessors arrays assocs calendar colors
combinators.short-circuit help help.markup help.syntax kernel
math math.functions math.matrices math.order math.parser
-math.trig math.vectors opengl opengl.demo-support opengl.gl
+math.vectors opengl opengl.demo-support opengl.gl
opengl.glu sbufs sequences strings threads ui.gadgets
ui.gadgets.worlds ui.gestures ui.render ;
! See https://factorcode.org/license.txt for BSD license.
USING: accessors arrays boids.simulation calendar classes colors
-kernel literals math math.functions math.trig models
+kernel literals math math.functions models
models.range opengl opengl.demo-support opengl.gl sequences
threads ui ui.commands ui.gadgets ui.gadgets.borders
ui.gadgets.buttons ui.gadgets.frames ui.gadgets.grids
! See https://factorcode.org/license.txt for BSD license
USING: accessors colors colors.lab colors.lch kernel math
-math.functions math.libm math.order math.trig ;
+math.functions math.libm math.order ;
IN: colors.distances
! See https://factorcode.org/license.txt for BSD license.
USING: accessors colors game.debug game.loop game.worlds gpu
gpu.framebuffers gpu.util.wasd kernel literals locals make math
-math.matrices math.matrices.extras math.parser math.trig
+math.matrices math.matrices.extras math.parser math.functions
sequences specialized-arrays ui.gadgets.worlds ui.pixel-formats
;
FROM: alien.c-types => float ;
! Copyright (C) 2010 Slava Pestov.
USING: gml.types gml.printer gml.runtime math math.constants
-math.functions math.matrices math.order ranges math.trig
+math.functions math.matrices math.order ranges
math.vectors continuations combinators arrays kernel vectors
accessors prettyprint fry sequences assocs locals hashtables
grouping sorting classes.struct math.vectors.simd
! Copyright (C) 2010 Slava Pestov.
USING: arrays gml.runtime kernel math.matrices
-math.matrices.extras math.trig math.vectors.simd.cords ;
+math.matrices.extras math.vectors.simd.cords
+math.functions ;
IN: gml.geometry
GML: rot_vec ( v n alpha -- v )
{ $examples
"Creates a 45 degree counter clock-wise rotation matrix and applies it to a vector:"
{ $example
- "USING: math.affine-transforms math.trig prettyprint ;\n45 deg>rad <rotation> { 0 4 } a.v ."
+ "USING: math.affine-transforms math.functions prettyprint ;\n45 deg>rad <rotation> { 0 4 } a.v ."
"{ -2.82842712474619 2.82842712474619 }"
}
"Applies a combined scaling and translation transform to a vector:"
{ $example
- "USING: math.affine-transforms math.trig prettyprint ;\n{ 0 -5 } <translation> 1 2 <scale> a. { 4 3 } a.v ."
+ "USING: math.affine-transforms math.functions prettyprint ;\n{ 0 -5 } <translation> 1 2 <scale> a. { 4 3 } a.v ."
"{ 4.0 1.0 }"
}
} ;
! See https:!factorcode.org/license.txt for BSD license.
! A port of https://github.com/raysan5/raylib/blob/master/examples/models/models_rlgl_solar_system.c
USING: accessors classes.struct kernel math math.functions
-math.trig ranges raylib rlgl sequences combinators.extras ;
+ranges raylib rlgl sequences combinators.extras ;
IN: rlgl.demo
! Some raylib combinators
! Copyright (c) 2012 Anonymous
! See https://factorcode.org/license.txt for BSD license.
-USING: arrays kernel math math.functions math.trig
+USING: arrays kernel math math.functions
math.vectors sequences ;
IN: rosetta-code.haversine-formula
! (c)2009 Joe Groff, see BSD license
USING: accessors literals math math.affine-transforms
-math.functions math.trig multiline sequences svg tools.test xml
+math.functions multiline sequences svg tools.test xml
xml.traversal ;
IN: svg.tests
! (c)2009 Joe Groff, see BSD license
USING: accessors arrays assocs kernel math
-math.affine-transforms math.functions math.parser math.trig
+math.affine-transforms math.functions math.parser
peg.ebnf sequences sequences.squish splitting strings xml.data
xml.syntax multiline ;
USING: accessors arrays combinators combinators.short-circuit
destructors game.input game.input.scancodes game.loop
game.worlds grid-meshes grouping kernel literals math
-math.functions math.matrices.simd math.order math.trig
+math.functions math.matrices.simd math.order
math.vectors math.vectors.simd noise opengl
opengl.capabilities opengl.gl opengl.shaders opengl.textures
sequences specialized-arrays terrain.generation terrain.shaders