ngm/util

Search:
Group by:
Source   Edit  

Types

Degrees = distinct Real
Source   Edit  
Radians = distinct Real
Source   Edit  

Consts

Ï€ = 3.141592653589793
Source   Edit  
π÷2 = 1.5707963267948966
Source   Edit  
π⋅2 = 6.283185307179586
Source   Edit  

Procs

func `$`(a`gensym9: Degrees): string {.borrow, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `$`(a`gensym20: Radians): string {.borrow, ...raises: [], tags: [],
                                        forbids: [].}
Source   Edit  
proc `'deg`(x: string): Degrees {.compileTime, ...raises: [ValueError], tags: [],
                                  forbids: [].}
Source   Edit  
proc `'rad`(x: string): Radians {.compileTime, ...raises: [ValueError], tags: [],
                                  forbids: [].}
Source   Edit  
proc `'°`(x: string): Degrees {.compileTime, ...raises: [ValueError], tags: [],
                                 forbids: [].}
Source   Edit  
func `*`(a`gensym5: Degrees; b`gensym5: distinctBase Degrees): Degrees {.borrow,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `*`(a`gensym5: distinctBase Degrees; b`gensym5: Degrees): Degrees {.borrow,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `*`(a`gensym16: distinctBase Radians; b`gensym16: Radians): Radians {.
    borrow, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `*`(a`gensym16: Radians; b`gensym16: distinctBase Radians): Radians {.
    borrow, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `+`(a`gensym3, b`gensym3: Degrees): Degrees {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `+`(a`gensym3: Degrees): Degrees {.borrow, ...raises: [], tags: [],
                                        forbids: [].}
Source   Edit  
func `+`(a`gensym14, b`gensym14: Radians): Radians {.borrow, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `+`(a`gensym14: Radians): Radians {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `+=`(a`gensym3: var Degrees; b`gensym3: Degrees) {.borrow, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `+=`(a`gensym14: var Radians; b`gensym14: Radians) {.borrow, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `-`(a`gensym3, b`gensym3: Degrees): Degrees {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `-`(a`gensym3: Degrees): Degrees {.borrow, ...raises: [], tags: [],
                                        forbids: [].}
Source   Edit  
func `-`(a`gensym14, b`gensym14: Radians): Radians {.borrow, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `-`(a`gensym14: Radians): Radians {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `-=`(a`gensym3: var Degrees; b`gensym3: Degrees) {.borrow, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `-=`(a`gensym14: var Radians; b`gensym14: Radians) {.borrow, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
func `/`(a`gensym5: Degrees; b`gensym5: distinctBase Degrees): Degrees {.borrow,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `/`(a`gensym16: Radians; b`gensym16: distinctBase Radians): Radians {.
    borrow, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `<`(a`gensym7, b`gensym7: Degrees): bool {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `<`(a`gensym18, b`gensym18: Radians): bool {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `<=`(a`gensym7, b`gensym7: Degrees): bool {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `<=`(a`gensym18, b`gensym18: Radians): bool {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `==`(a`gensym7, b`gensym7: Degrees): bool {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `==`(a`gensym18, b`gensym18: Radians): bool {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `=~`(a, b: Degrees): bool {.borrow, inline, ...raises: [], tags: [],
                                 forbids: [].}
Source   Edit  
func `=~`(a, b: Radians): bool {.borrow, inline, ...raises: [], tags: [],
                                 forbids: [].}
Source   Edit  
func cos(α: Radians): Real {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func deg(a: Radians): Degrees {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func deg(a: SomeNumber): Degrees {.inline.}
Source   Edit  
func degrees(a: Radians): Degrees {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func degrees(a: SomeNumber): Degrees {.inline.}
Source   Edit  
func rad(a: Degrees): Radians {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func rad(a: SomeNumber): Radians {.inline.}
Source   Edit  
func radians(a: Degrees): Radians {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func radians(a: SomeNumber): Radians {.inline.}
Source   Edit  
func repr(a`gensym9: Degrees): string {.borrow, ...raises: [], tags: [],
                                        forbids: [].}
Source   Edit  
func repr(a`gensym20: Radians): string {.borrow, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func sin(α: Radians): Real {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func tan(α: Radians): Real {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  

Converters

converter Degrees->Radians(a: Degrees): Radians {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
converter Radians->Degrees(a: Radians): Degrees {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit