Expand description
Extra functionality for coordinates.
Functions§
- calc
- Calculate a coordinate based on another coordinate and a function.
- diff
- get difference in distance.
- distance
- Get the distance between two Coordinates’.
- from_
list - Constructs a vector of generic structs from a given list convered to Coordinates.
- gen
- Constructs a randomly positioned coordinate.
- gen_
radius - Generate a Coordinate from a given Coordinate and randomly places it within a min and max radius.
- gen_
within_ radius - Generate a Coordinate from a given Coordinate and randomly places it within a radius.
- rotate_
around_ axis - Rotates the provide Vec around the axis in place.