Module node_2d

Procs

proc position*(self: Node2D): Vector2 {.
gcsafe, locks: 0
.}
proc `position =`*(self: Node2D; val: Vector2) {.
gcsafe, locks: 0
.}
proc rotation*(self: Node2D): float64 {.
gcsafe, locks: 0
.}
proc `rotation =`*(self: Node2D; val: float64) {.
gcsafe, locks: 0
.}
proc rotationDeg*(self: Node2D): float64 {.
gcsafe, locks: 0
.}
proc `rotationDeg =`*(self: Node2D; val: float64) {.
gcsafe, locks: 0
.}
proc scale*(self: Node2D): Vector2 {.
gcsafe, locks: 0
.}
proc `scale =`*(self: Node2D; val: Vector2) {.
gcsafe, locks: 0
.}
proc transform*(self: Node2D): Transform2D {.
gcsafe, locks: 0
.}
proc `transform =`*(self: Node2D; val: Transform2D) {.
gcsafe, locks: 0
.}
proc globalPosition*(self: Node2D): float64 {.
gcsafe, locks: 0
.}
proc `globalPosition =`*(self: Node2D; val: float64) {.
gcsafe, locks: 0
.}
proc globalRotation*(self: Node2D): float64 {.
gcsafe, locks: 0
.}
proc `globalRotation =`*(self: Node2D; val: float64) {.
gcsafe, locks: 0
.}
proc globalRotationDeg*(self: Node2D): float64 {.
gcsafe, locks: 0
.}
proc `globalRotationDeg =`*(self: Node2D; val: float64) {.
gcsafe, locks: 0
.}
proc globalScale*(self: Node2D): float64 {.
gcsafe, locks: 0
.}
proc `globalScale =`*(self: Node2D; val: float64) {.
gcsafe, locks: 0
.}
proc globalTransform*(self: Node2D): Transform2D {.
gcsafe, locks: 0
.}
proc `globalTransform =`*(self: Node2D; val: Transform2D) {.
gcsafe, locks: 0
.}
proc z*(self: Node2D): int64 {.
gcsafe, locks: 0
.}
proc `z =`*(self: Node2D; val: int64) {.
gcsafe, locks: 0
.}
proc zAsRelative*(self: Node2D): bool {.
gcsafe, locks: 0
.}
proc `zAsRelative =`*(self: Node2D; val: bool) {.
gcsafe, locks: 0
.}
proc rotate*(self: Node2D; radians: float64) {.
gcsafe, locks: 0
.}
proc moveLocalX*(self: Node2D; delta: float64; scaled: bool = false) {.
gcsafe, locks: 0
.}
proc moveLocalY*(self: Node2D; delta: float64; scaled: bool = false) {.
gcsafe, locks: 0
.}
proc translate*(self: Node2D; offset: Vector2) {.
gcsafe, locks: 0
.}
proc globalTranslate*(self: Node2D; offset: Vector2) {.
gcsafe, locks: 0
.}
proc applyScale*(self: Node2D; ratio: Vector2) {.
gcsafe, locks: 0
.}
proc lookAt*(self: Node2D; point: Vector2) {.
gcsafe, locks: 0
.}
proc getAngleTo*(self: Node2D; point: Vector2): float64 {.
gcsafe, locks: 0
.}
proc toLocal*(self: Node2D; globalPoint: Vector2): Vector2 {.
gcsafe, locks: 0
.}
proc toGlobal*(self: Node2D; localPoint: Vector2): Vector2 {.
gcsafe, locks: 0
.}
proc editSetPivot*(self: Node2D; pivot: Vector2) {.
gcsafe, locks: 0
.}
proc getRelativeTransformToParent*(self: Node2D; parent: Node): Transform2D {.
gcsafe, locks: 0
.}

Methods

method getRotd*(self: Node2D): float64 {.
gcsafe, locks: 0, base
.}
method setRotd*(self: Node2D; degrees: float64) {.
gcsafe, locks: 0, base
.}