ProtoFlux:Sphere For Tangent Line

From Resonite Wiki
Sphere For Tangent Line
LinePoint
TangentPoint
LineDirection
Radius
SphereCenter
Geometry 3D

The Sphere For Tangent Line node takes a line point for our sphere point, a line in 3D space, and point for the line, creating a sphere in 3D space. Then it returns the point and radius of a sphere, similar to a reversed Tan node.

Inputs

LinePoint (float3)

The point where the line is.

LineDirection (float3)

The direction of a line provided.

SphereCenter (float3)

The sphere point we want to make (in some distance away from the line).

Outputs

TangentPoint (float3)

Returns the tangent point where the line and sphere touch.

Radius (float)

Returns the radius of the sphere that is created by this calculation.