TradingView
RicardoSantos
22 de Fev de 2023 15:54
Vector2FunctionClip
OANDA:NAS100USD
1M
US Nas 100
OANDA
Descrição
⋅
22 de Fev de 2023 15:54
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>.
arrays
Market Geometry
MATH
library
udf
function
method
vector
polygon
clip
2d
Comentários
KioseffTrading
⋅
22 de Fev de 2023 16:57
BEAST
djmad
⋅
22 de Fev de 2023 20:29
Are you trying to code a CAD system for Pinescript?
nice work!!!
RicardoSantos
⋅
23 de Fev de 2023 11:34
@djmad
, nah, just a leftover toy code
m4rk3tm4k3r
⋅
3 de Nov de 2023 15:41
You are the best !
MillionYay
⋅
28 de Fev de 2023 02:02
Amazing
slkmbnz37
⋅
22 de Fev de 2023 16:16
Hi Ricardo , Hope all is well. A brief explanation would be great .
RicardoSantos
⋅
22 de Fev de 2023 16:56
@slkmbnz37
, it clips a polygon shape to fit another as per the description and example
Mais