How get Sphere inversed clampPoint?

Hi world.

It’s simple but I cant find the way to reach the inverse clampPoint (blue point).
I make a draw to make me understand.

Anyone can help me with this?

Assuming X is the center point and Y clampPoint:

  • Compute new vector B via X-Y
  • Adding B to X should represent inverseClampPoint

Do you think this method can be added to Sphere? Can be helpful.

I think this use case is too specific to implement it as a method.

1 Like