[][src]Module fart::prelude

The most common functionality re-exported.

Re-exports

pub use crate::path::LineCommand;
pub use crate::path::Path;
pub use crate::scene::Inches;
pub use crate::scene::Scene;
pub use crate::scene::SceneSpace;
pub use crate::shape::Shape;
pub use crate::shape::ShapeId;

Structs

Aabb

An axis-aligned bounding box.

Normal

The normal distribution N(mean, std_dev**2).

Triangle

A plain triangle.

Uniform

Sample values uniformly between two bounds.

Traits

Distribution

Types (distributions) that can be used to create a random instance of T.

Rng

An automatically-implemented extension trait on [RngCore] providing high-level generic methods for sampling values and other convenience methods.

Functions

clamp

Clamp a value to within some range.

map_range

Map a value from one range to another range.

point2
vec2

Convenience constructor.