macro_rules! impl_accessors {
( $simplex:ident, $point:ident, $npoints:expr,
[$(($method:ident, $field:ident)),+]
) => {
impl <S : Copy> $simplex <S> {
$(
#[inline]
pub const fn $method (self) -> $point <S> {
self.$field
}
)+
#[inline]
pub const fn points (self) -> [$point <S>; $npoints] {
[$(self.$field),+]
}
}
}
}