inline
This commit is contained in:
parent
a9ea7f2872
commit
d0224dee32
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ type
|
||||||
at*: Vec2
|
at*: Vec2
|
||||||
to*: Vec2
|
to*: Vec2
|
||||||
|
|
||||||
proc segment*(at, to: Vec2): Segment =
|
proc segment*(at, to: Vec2): Segment {.inline.} =
|
||||||
result.at = at
|
result.at = at
|
||||||
result.to = to
|
result.to = to
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ proc intersects*(a, b: Segment, at: var Vec2): bool {.inline.} =
|
||||||
return true
|
return true
|
||||||
return false
|
return false
|
||||||
|
|
||||||
proc fractional*(v: float32): float32 =
|
proc fractional*(v: float32): float32 {.inline.} =
|
||||||
## Returns unsigned fraction part of the float.
|
## Returns unsigned fraction part of the float.
|
||||||
## -13.7868723 -> 0.7868723
|
## -13.7868723 -> 0.7868723
|
||||||
result = abs(v)
|
result = abs(v)
|
||||||
|
|
Loading…
Reference in a new issue