mb_pgram: better docs
This commit is contained in:
parent
ae3ac2717b
commit
c9dd27f741
|
@ -10,11 +10,11 @@ use serde::{Serialize, Deserialize};
|
|||
/// M(B) parallelogram
|
||||
///
|
||||
///```ignore
|
||||
/// ____________
|
||||
/// ____________ (P1)
|
||||
/// / /
|
||||
/// / . /
|
||||
/// / /
|
||||
/// /___________/
|
||||
/// /___________/ (P0)
|
||||
/// ```
|
||||
///
|
||||
/// The `.` depicts (0, 0). X axis is B; y axis is M.
|
||||
|
@ -26,10 +26,13 @@ use serde::{Serialize, Deserialize};
|
|||
#[derive(Copy, Clone, Default, PartialEq)]
|
||||
pub struct MBPgram<R> {
|
||||
/// X coordinate at which the upward slope starts
|
||||
/// X coordinate for point P0 in the diagram above.
|
||||
pub b_start: R,
|
||||
/// X coordinate at which the upward slope ends
|
||||
/// X coordinate for point P1 in the diagram above.
|
||||
pub b_end: R,
|
||||
/// Vertical range of the graph
|
||||
/// Y coordinate for point P1, negative Y coordinate for point P0, in the diagram above.
|
||||
pub max_m: R,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue