ProtoFlux:Closest Point On Cone Surface

From Resonite Wiki
Closest Point On Cone Surface
ConeCenter
ClosestPoint
ConeOrientation
IsPointInside
ConeHeight
ConeBaseRadius
Point
Geometry 3D

The Closest Point On Cone Surface node takes in the cone parameters (size and rotation) and a provided point to check. Then it returns the closest point on that cone's surface and if that point is within that cone's defined parameters.

Inputs

ConeCenter (float3)

The center of the cone (located at the center of the base of the cone).

ConeOrientation (floatQ)

The rotation of the cone.

ConeHeight (float)

The height of the cone.

ConeBaseRadius (float)

The size of the cone base's circle radius.

Point (float3)

The point we are checking.

Outputs

ClosestPoint (float3)

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

IsPointInside (bool)

Returns if the point is within this cone.