Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "math/orthogonal"

Index

Variables

Const orthogonal3

orthogonal3: TaggedFn1<"vec3", "vec3"> = defn("vec3", "orthogonal3", ["vec3"], (v) => [ret(ternary(gt(abs($x(v)), abs($z(v))),vec3(neg($y(v)), $x(v), 0),vec3(0, neg($z(v)), $y(v)))),])

Functions

Const perpendicularCCW

  • perpendicularCCW(v: Vec2Term): Lit<"vec2">
  • Inline function. Returns counter-clockwise perpendicular vector (assuming Y-up). [-y, x]

    Parameters

    • v: Vec2Term

      -

    Returns Lit<"vec2">

Const perpendicularCW

  • perpendicularCW(v: Vec2Term): Lit<"vec2">
  • Inline function. Returns clockwise perpendicular vector (assuming Y-up). [y,-x]

    Parameters

    • v: Vec2Term

      -

    Returns Lit<"vec2">

Generated using TypeDoc