Module library

Source
Expand description

GeoScript’s builtin functions and types

Modules§

angle
area
Functions related to calculating an area.
bisector
The bisector function
circle
Functions directly related to circles.
complex
All functions for complex number manipulation
degrees
The degrees function.
dst
The dst function
intersection
The intersection function
lies_on
The lies_on rule
line
The Line function
macros
Helper macros
mid
parallel
The parallel_through function
perpendicular
The perpendicular_through function
point
The Point function.
polygon
Polygon related functions.
prelude
A prelude for builtin functions.
radians
The radians function.
segment
The Segment type and function
transform
triangle
Triangle-related functions
trigonometry
Trigonometry functions.

Structs§

Function
A GeoScript function.
FunctionOverload
An overload of a function in GeoScript.
FunctionRuleOverload
A rule overload made from a function.
Library
The library of all rules and functions available in geoscript.
NumberUnit
Number with a specific unit.
Pc
Point collection with a specific size
Rule
A rule operator.

Enums§

Definition
A direct definition or an alias

Traits§

Addable
Trait for adding a definition to the library.
IntoOverload
Helper trait for overloading a function. Features a special marker for managing possible different implementations on the same type.
IntoRuleOverload
Trait for things convertible into rule overloads
Overload
Trait for function overloads
RuleOverload
Trait for rule overloads

Functions§

get_derived_pc
Returns what size of point collection can the given derived type be cast onto. 0 signifies that casting is not possible

Type Aliases§

Angle
Area
Distance
Unitless