package
0.0.0-20241206193558-869a5703a7f3
Repository: https://github.com/snarechops/nengine.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
AngleBetweenPoints returns the angle from the first point to the second.
ChunkBounds returns a list of bounds split from the original bounds using the maximum provided size Note: This is usually used to facilitate splitting a large Bounds or image into smaller pieces so that it can be used by the Renderer.
No description provided by the author
No description provided by the author
No description provided by the author
DistanceBetween returns the distance between two given vectors.
DistanceBetweenPoints returns the distance between two given sets of points.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Lerp returns the point on a line between the two provided endpoints at the given percentage.
No description provided by the author
MoveAway returns a new (x, y float64) position given the starting position and travelling directly opposite the angle towards the target.
MoveTowards returns a new (x, y float64) position given the starting position then travelling at the provided angle at a consistent speed over time.
PointAtAngleWithDistance returns a new (x, y float64) given the starting position then traveling at the provided angle the given length distance.
No description provided by the author
No description provided by the author
ScaleFactor returns the scale factor from one size to another.
# Structs
ImageChunk represents a chunk of an image that can be reassembled to the full image again Note: This is usually used to split a large image into smaller pieces so it can be consumed by the Renderer.
# Interfaces
No description provided by the author