VS:LineCircleIntersect: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
Line 5: | Line 5: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<desc> | <desc> | ||
Finds the intersection points of a line and a circle. | Finds the intersection points of a line and a circle.</desc> | ||
</desc> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<def> | <def> | ||
<funcDef lang="vs"> | <funcDef lang="vs"> | ||
FUNCTION LineCircleIntersect( | FUNCTION LineCircleIntersect(begPt:VECTOR; endPt:VECTOR; cenPt:VECTOR; radius:REAL; VAR pt1:VECTOR; VAR pt2:VECTOR) : BOOLEAN; | ||
</funcDef> | </funcDef> | ||
<funcDef lang="py"> | <funcDef lang="py"> | ||
Line 25: | Line 22: | ||
<lineList ident=1> | <lineList ident=1> | ||
<line> | <line> | ||
begPt | |||
VECTOR | |||
</line> | </line> | ||
<line> | <line> | ||
endPt | |||
VECTOR | |||
</line> | </line> | ||
<line> | <line> | ||
cenPt | |||
VECTOR | |||
</line> | </line> | ||
Line 45: | Line 42: | ||
</line> | </line> | ||
<line> | <line> | ||
pt1 | |||
VECTOR | |||
</line> | </line> | ||
<line> | <line> | ||
pt2 | |||
VECTOR | |||
</line> | </line> | ||
</lineList> | </lineList> | ||
</params> | </params> | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <remark></remark> | ||
</ | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <sample></sample> | ||
</ | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <seeAlso></seeAlso> | ||
</ | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Availability: from | Availability: from Vectorworks 2014 | ||
</version> | </version> | ||
</vwDoc> | </vwDoc> |
Revision as of 17:35, 18 September 2013
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Finds the intersection points of a line and a circle.
FUNCTION LineCircleIntersect(
begPt :VECTOR;
endPt :VECTOR;
cenPt :VECTOR;
radius :REAL;
VAR pt1 :VECTOR;
VAR pt2 :VECTOR) : BOOLEAN;
def vs.LineCircleIntersect(begPt, endPt, cenPt, radius): return (BOOLEAN, pt1, pt2)
Parameters
begPt VECTOR endPt VECTOR cenPt VECTOR radius REAL pt1 VECTOR pt2 VECTOR
Version
Availability: from Vectorworks 2014