[][src]Module pathtracer::coordinate

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.