Module quats

Types

Quat* {.
byref
.} = object x*: float32 y*: float32 z*: float32 w*: float32
  Source Edit

Procs

proc initQuat*(x, y, z, w: float32): Quat {.
inline
.}
  Source Edit
proc initQuat*(axis: Vector3; angle: float32): Quat {.
inline
.}
  Source Edit
proc `$`*(self: Quat): string {.
inline
.}
  Source Edit
proc length*(self: Quat): float32 {.
noSideEffect, importc: "godot_quat_length"
.}
  Source Edit
proc lengthSquared*(self: Quat): float32 {.
noSideEffect, importc: "godot_quat_length_squared"
.}
  Source Edit
proc normalized*(self: Quat): Quat {.
noSideEffect, importc: "godot_quat_normalized"
.}
  Source Edit
proc isNormalized*(self: Quat): bool {.
noSideEffect, importc: "godot_quat_is_normalized"
.}
  Source Edit
proc inverse*(self: Quat): Quat {.
noSideEffect, importc: "godot_quat_inverse"
.}
  Source Edit
proc dot*(a, b: Quat): float32 {.
noSideEffect, importc: "godot_quat_dot"
.}
  Source Edit
proc xform*(self: Quat; v: Vector3): Vector3 {.
noSideEffect, importc: "godot_quat_xform"
.}
  Source Edit
proc slerp*(self: Quat; b: Quat; t: float32): Quat {.
noSideEffect, importc: "godot_quat_slerp"
.}
  Source Edit
proc slerpni*(self: Quat; b: Quat; t: float32): Quat {.
noSideEffect, importc: "godot_quat_slerpni"
.}
  Source Edit
proc cubicSlerp*(self, b, pre_a, post_b: Quat; t: float32): Quat {.
noSideEffect, importc: "godot_quat_cubic_slerp"
.}
  Source Edit
proc `*`*(a: Quat; b: float32): Quat {.
noSideEffect, importc: "godot_quat_operator_multiply"
.}
  Source Edit
proc `*=`*(a: var Quat; b: float32) {.
inline
.}
  Source Edit
proc `+`*(a, b: Quat): Quat {.
noSideEffect, importc: "godot_quat_operator_add"
.}
  Source Edit
proc `+=`*(a: var Quat; b: Quat) {.
inline
.}
  Source Edit
proc `-`*(a, b: Quat): Quat {.
noSideEffect, importc: "godot_quat_operator_substract"
.}
  Source Edit
proc `-=`*(a: var Quat; b: Quat) {.
inline
.}
  Source Edit
proc `/`*(self: Quat; b: float32): Quat {.
noSideEffect, importc: "godot_quat_operator_divide"
.}
  Source Edit
proc `/=`*(self: var Quat; b: float32) {.
inline
.}
  Source Edit
proc `==`*(a, b: Quat): bool {.
noSideEffect, importc: "godot_quat_operator_equal"
.}
  Source Edit
proc `-`*(self: Quat): Quat {.
noSideEffect, importc: "godot_quat_operator_neg"
.}
  Source Edit