TradingView
RicardoSantos
22 Th02 2023 15:54

Vector2FunctionClip 

US Nas 100OANDA

Mô tả

Library "Vector2FunctionClip"
Sutherland-Hodgman polygon clipping algorithm.
reference:
.
rosettacode.org/wiki/Sutherland-Hodgman_polygon_clipping
.

clip(source, reference)
  Perform Clip operation on a vector with another.
  Parameters:
    source: array<Vector2> . Source polygon to be clipped.
    reference: array<Vector2> . Reference polygon to clip source.
  Returns: array<Vector2>.
Bình luận
KioseffTrading
BEAST
djmad
Are you trying to code a CAD system for Pinescript?
nice work!!!
RicardoSantos
@djmad, nah, just a leftover toy code
m4rk3tm4k3r
You are the best !
MillionYay
Amazing
slkmbnz37
Hi Ricardo , Hope all is well. A brief explanation would be great .
RicardoSantos
@slkmbnz37, it clips a polygon shape to fit another as per the description and example
Thêm nữa