TradingView
RicardoSantos
2023年2月22日下午3點54分
Vector2FunctionClip
OANDA:NAS100USD
1M
US Nas 100
OANDA
描述
⋅
2023年2月22日下午3點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
評論
KioseffTrading
⋅
2023年2月22日下午4點57分
BEAST
djmad
⋅
2023年2月22日晚上8點29分
Are you trying to code a CAD system for Pinescript?
nice work!!!
RicardoSantos
⋅
2023年2月23日中午11點34分
@djmad
, nah, just a leftover toy code
m4rk3tm4k3r
⋅
2023年11月3日下午3點41分
You are the best !
MillionYay
⋅
2023年2月28日早上2點02分
Amazing
slkmbnz37
⋅
2023年2月22日下午4點16分
Hi Ricardo , Hope all is well. A brief explanation would be great .
RicardoSantos
⋅
2023年2月22日下午4點56分
@slkmbnz37
, it clips a polygon shape to fit another as per the description and example
更多