pub fn edge_line_segment(&self, dir: GridDirection, hex_side_length: f64, axial_to_cartesian: &Matrix2<f64>) -> Segment<f64> {
        let self_center_cartesian = self.index_center(axial_to_cartesian);
        let (start_offset, end_offset) = dir.cartesian_offsets(hex_side_length);

        let start_point = self_center_cartesian + start_offset;
        let end_point   = self_center_cartesian + end_offset;
        Segment::new(start_point, end_point)
    }
// Cartesian coordinates for edge defined in direction of dir.
Cartesian coordinates for edge defined in direction of dir.
Cartesian coordinates for edge defined in direction of dir .
pub fn edge_line_segment(&self, dir: GridDirection, hex_side_length: f64, axial_to_cartesian: &Matrix2<f64>) -> Segment<f64> {
        let self_center_cartesian = self.index_center(axial_to_cartesian);
        let (start_offset, end_offset) = dir.cartesian_offsets(hex_side_length);
        let start_point = self_center_cartesian + start_offset;
        let end_point   = self_center_cartesian + end_offset;
        Segment::new(start_point, end_point)
    }
pub fn edge_line_segment ( & self , dir : GridDirection , hex_side_length : f64 , axial_to_cartesian : & Matrix2 < f64 > ) -> Segment < f64 > { let self_center_cartesian = self . index_center ( axial_to_cartesian ) ; let ( start_offset , end_offset ) = dir . cartesian_offsets ( hex_side_length ) ; let start_point = self_center_cartesian + start_offset ; let end_point = self_center_cartesian + end_offset ; Segment :: new ( start_point , end_point ) }
Cartesian coordinates for edge defined in direction of dir.
Cartesian coordinates for edge defined in direction of dir .
&self
dir
GridDirection
hex_side_length
f64
axial_to_cartesian
&Matrix2<f64>
&self
dir
GridDirection
hex_side_length
f64
axial_to_cartesian
&Matrix2<f64>