TradingView
RicardoSantos
٢٢ شباط فبراير ٢٠٢٣ ١٥:٥٤
Vector2FunctionClip
OANDA:NAS100USD
1M
US Nas 100
OANDA
الوصف
⋅
٢٢ شباط فبراير ٢٠٢٣ ١٥:٥٤
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
التعليقات
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
المزيد