Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

sdf.join_axis (procNode)

The vector whose coordinate along an axis, and the two across it in cyclic order, are given: the inverse of sdf.split_axis.

Inputs

  • axis (String, default "y"): Which axis along is the coordinate of: "x", "y" or "z". The other two coordinates, u then v, follow in cyclic order: x puts them on y then z, y on z then x, z on x then y.
  • along (Field<Float> | Float, default 0.0): The coordinate on the axis.
  • u (Field<Float> | Float, default 0.0): The first perpendicular coordinate.
  • v (Field<Float> | Float, default 0.0): The second perpendicular coordinate.

Outputs

  • vector (Vec3, or a Field<Vec3> when any part is a field): the vector put together.

Example

local v = g.sdf.join_axis({ axis = "y", along = 2, u = 3, v = 1 })
-- v is (1, 2, 3)