ProtoFlux:Closest Point On Spherical Sector Surface

From Resonite Wiki
Closest Point On Spherical Sector Surface
Center
ClosestPoint
Direction
IsPointInside
Radius
Angle
Point
Geometry 3D

The Closest Point On Spherical Sector Surface node takes a point in 3D space and computes the closest point on the surface of a spherical sector defined by its center, direction, radius, and angle. Then it returns the closest point on that sphere's surface and if that point is within that sphere's defined parameters.

Inputs

Center (float3)

The center of the sphere.

Direction (float3)

The facing direction of the sphere.

Radius (float)

The radius of the sphere.

Angle (float)

The angle this point and sphere is going to be using for calculations.

Point (float3)

The point we are checking.

Outputs

ClosestPoint (float3)

Returns the point in the sphere's surface compared with the point given.

IsPointInside (bool)

Returns if the point is within this sphere.