Make field of Triangle public

With the constructor no longer preventing degenerate triangle, there's
no reason to keep it private.
This commit is contained in:
Hanno Braun 2024-07-29 19:23:40 +02:00
parent 1d149d2968
commit be31c2d10a

View File

@ -12,7 +12,8 @@ use super::{Point, Scalar};
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Hash, Ord, PartialOrd)]
#[repr(C)]
pub struct Triangle<const D: usize> {
points: [Point<D>; 3],
/// The points that make up the triangle
pub points: [Point<D>; 3],
}
impl<const D: usize> Triangle<D> {