mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
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:
parent
1d149d2968
commit
be31c2d10a
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user