Module planes

Types

Plane* {.
byref
.} = object normal*: Vector3 d*: float32
  Source Edit

Procs

proc initPlane*(a, b, c, d: float32): Plane
  Source Edit
proc initPlane*(v1, v2, v3: Vector3): Plane
  Source Edit
proc initPlane*(normal: Vector3; d: float32): Plane
  Source Edit
proc `$`*(self: Plane): string {.
inline
.}
  Source Edit
proc normalized*(self: Plane): Plane {.
noSideEffect, importc: "godot_plane_normalized"
.}
  Source Edit
proc center*(self: Plane): Vector3 {.
noSideEffect, importc: "godot_plane_center"
.}
  Source Edit
proc getAnyPoint*(self: Plane): Vector3 {.
noSideEffect, importc: "godot_plane_get_any_point"
.}
  Source Edit
proc isPointOver*(self: Plane; point: Vector3): bool {.
noSideEffect, importc: "godot_plane_is_point_over"
.}
  Source Edit
proc distanceTo*(self: Plane; point: Vector3): float32 {.
noSideEffect, importc: "godot_plane_distance_to"
.}
  Source Edit
proc contains*(self: Plane; point: Vector3; epsilon: float32): bool {.
noSideEffect, importc: "godot_plane_has_point"
.}
  Source Edit
proc project*(self: Plane; point: Vector3): Vector3 {.
noSideEffect, importc: "godot_plane_project"
.}
  Source Edit
proc intersect3*(self: Plane; dest: var Vector3; b, c: Plane): bool {.
noSideEffect, importc: "godot_plane_intersect_3"
.}
  Source Edit
proc intersectsRay*(self: Plane; dest: var Vector3; v, dir: Vector3): bool {.
noSideEffect, importc: "godot_plane_intersects_ray"
.}
  Source Edit
proc intersectsSegment*(self: Plane; dest: var Vector3;
                       segmentBegin, segmentEnd: Vector3): bool {.
noSideEffect, importc: "godot_plane_intersects_segment"
.}
  Source Edit
proc `-`*(self: Plane): Plane {.
noSideEffect, importc: "godot_plane_operator_neg"
.}
  Source Edit
proc `==`*(a, b: Plane): bool {.
noSideEffect, importc: "godot_plane_operator_equal"
.}
  Source Edit