mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-27 12:26:08 +00:00
Improve documentation of line approximation
This commit is contained in:
parent
633bf5edcc
commit
ad5ec4d562
@ -102,13 +102,12 @@ fn approx_circle<const D: usize>(
|
|||||||
|
|
||||||
/// Approximate a line
|
/// Approximate a line
|
||||||
///
|
///
|
||||||
/// Since path approximation don't include the end points of the approximation
|
/// Since curve approximations don't include the approximation boundary itself,
|
||||||
/// boundary, and a line does not require any other points to be fully defined,
|
/// and a line does not require any other points to be fully defined, this
|
||||||
/// this method always returns no points.
|
/// method always returns no points.
|
||||||
///
|
///
|
||||||
/// The method still exists, to make the code that approximates lines easy to
|
/// The method still exists, to make the code that approximates lines, and thus
|
||||||
/// find for anyone reading this module, as well as to provide a place to
|
/// this piece of documentation, easy to find for anyone who's looking.
|
||||||
/// document this fact about line approximations.
|
|
||||||
fn approx_line<const D: usize>(line: &Line<D>) -> Vec<(Point<1>, Point<D>)> {
|
fn approx_line<const D: usize>(line: &Line<D>) -> Vec<(Point<1>, Point<D>)> {
|
||||||
let _ = line;
|
let _ = line;
|
||||||
Vec::new()
|
Vec::new()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user