Discover Packages
git.kirsle.net/SketchyMaze/doodle
pkg
physics
package
Version:
v0.0.0-...-1f00af5
Opens a new window with list of versions in this module.
Published: May 27, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Lerp performs linear interpolation between two numbers.
a and b are the two bounds of the number, and t is a fraction between 0 and
1 that will return a number between a and b. If t=0, returns a; if t=1,
returns b.
LerpInt runs lerp using integers.
Mover is a moving object.
NewMover initializes state for a moving object.
Vector holds floating point values on an X and Y coordinate.
NewVector creates a Vector from X and Y values.
VectorFromPoint converts a render.Point into a vector.
IsZero returns if the vector is zero.
String encoding of the vector.
ToPoint converts the vector into a render.Point with integer coordinates.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.