hex Interface

public interface hex

constructor override

Calls

interface~~hex~~CallsGraph interface~hex hex_coordinates::hex proc~new_hex_axial hex_coordinates::new_hex_axial interface~hex->proc~new_hex_axial proc~new_hex_cubic hex_coordinates::new_hex_cubic interface~hex->proc~new_hex_cubic assert assert proc~new_hex_cubic->assert

Module Procedures

private pure function new_hex_cubic(q, r, s) result(H)

Safe cubic constructor for the hex type featuring an assertion on input coordinates before the initialization of the object

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: q
integer, intent(in) :: r
integer, intent(in) :: s

Return Value type(hex)

private pure function new_hex_axial(q, r) result(H)

Axial cubic constructor for the hex type [s would be computed internally]

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: q
integer, intent(in) :: r

Return Value type(hex)