package elm_playground_gamekits

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module RoadSource

Sourcetype section = {
  1. enter : int;
  2. hold : int;
  3. leave : int;
  4. curve : Playground.number;
  5. hill : Playground.number;
}
Sourceval straight : int -> section
Sourceval curve : int -> Playground.number -> section
Sourceval hill : int -> Playground.number -> section
Sourceval curve_hill : int -> Playground.number -> Playground.number -> section
Sourceval coast : section list
Sourcetype segment = {
  1. index : int;
  2. y1 : Playground.number;
  3. y2 : Playground.number;
  4. curve : Playground.number;
}
Sourcetype t = {
  1. segment_length : Playground.number;
  2. segments : segment array;
}
Sourceval build : Playground.number -> section list -> t
Sourceval length : t -> Playground.number
Sourceval segment_at : t -> Playground.number -> segment
Sourcetype point = {
  1. x : Playground.number;
  2. y : Playground.number;
  3. z : Playground.number;
  4. heading : Playground.number;
}
Sourceval centerline : Playground.number -> t -> point array