Module rust_3d::factory_2d [] [src]

Module containing functions used for the creation of 2D shapes and geometries

Functions

arc

Creates an arc with the given center, diameter, resolution and start and end angles in radians

ellipse

Creates an ellipse with the given center, a, b and resolution

involut_circle

Creates a involut circle with the given center, diameter, resolution and start and end angles in radians

origin

@todo entire file has to be added to tests @todo add some type level checks like diameter > 0 etc., or return Option types (similar to flaggedT?) @todo define trait for pc2d factories, later for 3d as well @todo remove center as param and create all around origin @todo correct reserving @todo order parameters (e.g. center and n_points always first) Returns a point at the origin

rectangle

Creates a 2D rectangle from given center width and height