NAME
on_surface — a point on the front of Mochi's body, and its normal
SYNOPSIS
on_surface(cx, cy, rx, ry, rz, x, y, out=0.004)
DESCRIPTION
The point on the front of the ellipsoid (centre (cx, cy, 0), radii rx, ry, rz) above (x, y), lifted out along the normal by out, and the unit normal there (the ellipsoid's gradient). Where an eye, a cheek or the mouth is laid.
PARAMETERS
cx, cy, rx, ry, rz: the body. x, y: where, seen from the front. out: how far out; 4 mm by default.
RETURN VALUE
(point, normal).
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
