Document ScaledMetric

This commit is contained in:
numzero 2024-09-14 18:28:07 +03:00
parent f5f94d3c1c
commit 871d2d822b

View File

@ -156,6 +156,7 @@ pub mod samples {
use super::{Decomp2, Metric}; use super::{Decomp2, Metric};
pub struct ScaledMetric { pub struct ScaledMetric {
/// Specifies unit size in each cardinal direction. E.g. with scale=(2, 3), vector (1, 0) has length 2 while a unit vector with the same direction is (1/2, 0).
pub scale: Vec2, pub scale: Vec2,
} }