10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-12-23 12:53:46 +01:00
QCaml/common/lib/powers.mli

37 lines
774 B
OCaml
Raw Normal View History

2021-01-28 00:34:26 +01:00
(* Type
*
* <<<~Powers.t~>>> *)
2020-12-28 01:08:55 +01:00
2020-12-28 01:55:03 +01:00
(* [[file:~/QCaml/common/powers.org::*Type][Type:1]] *)
2018-02-25 00:53:09 +01:00
type t = private {
2020-12-28 01:08:55 +01:00
x : int ;
y : int ;
z : int ;
2021-01-28 00:34:26 +01:00
tot : int ;
2020-12-28 01:08:55 +01:00
}
(* Type:1 ends here *)
2018-02-25 00:53:09 +01:00
2020-12-28 01:08:55 +01:00
(* Conversions *)
2018-02-25 00:53:09 +01:00
2020-12-28 01:55:03 +01:00
(* [[file:~/QCaml/common/powers.org::*Conversions][Conversions:1]] *)
2020-12-28 01:08:55 +01:00
val of_int_tuple : int * int * int -> t
val to_int_tuple : t -> int * int * int
(* Conversions:1 ends here *)
2018-02-25 00:53:09 +01:00
2020-12-28 01:08:55 +01:00
(* Operations *)
2018-02-25 00:53:09 +01:00
2020-12-28 01:55:03 +01:00
(* [[file:~/QCaml/common/powers.org::*Operations][Operations:1]] *)
2018-02-19 11:24:15 +01:00
val get : Coordinate.axis -> t -> int
2021-01-28 00:34:26 +01:00
val incr : Coordinate.axis -> t -> t
2018-02-19 11:24:15 +01:00
val decr : Coordinate.axis -> t -> t
2020-12-28 01:08:55 +01:00
(* Operations:1 ends here *)
2018-02-25 00:53:09 +01:00
2020-12-28 01:08:55 +01:00
(* Printers *)
2018-02-25 00:53:09 +01:00
2018-02-19 11:24:15 +01:00
2020-12-28 01:55:03 +01:00
(* [[file:~/QCaml/common/powers.org::*Printers][Printers:1]] *)
2020-12-28 01:08:55 +01:00
val pp : Format.formatter -> t -> unit
(* Printers:1 ends here *)