LineSpan: Difference between revisions
(Created page with "right|50px|link=Creating Vectors From Script right|50px|link=Creating Vectors From Script ==References== '''Please Note:'...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Back.jpg|right|50px|link=Creating Vectors From Script]] | [[File:Back.jpg|right|50px|link=Creating Vectors From Script]] | ||
This object represents a line span in a Contour. It is derived from the Span class and all methods and properties of the span class are valid on this object as well. As well as creating spans to append to a contour you can use the LineTo methods to avoid span creation. | |||
==Constructors== | |||
===LineSpan(Point3D start_pt, Point3D end_pt)=== | |||
A new span representing a line is created within a Lua script using this contructor method | |||
start_pt - Point3D – 3D position for start point of span end_pt - Point3D – 3D position for end point of span | |||
e.g | |||
local start_pt = Point3D(0, 0, 0) local end_pt = Point3D(1.0, 0, 0) | |||
local line_span = LineSpan(start_pt, end_pt) | |||
===LineSpan(Point2D start_pt, Point2D end_pt)=== | |||
A new span representing aline is created within a Lua script using this contructor method | |||
start_pt - Point2D - 2d position for start point of span end_pt - Point2D - 2d position for end point of span | |||
e.g | |||
local start_pt = Point2D(0, 0) local end_pt = Point2D(1.0, 0) | |||
local line_span = LineSpan(start_pt, end_pt) | |||
==Methods== | |||
===ClosestParameterToPoint( Point2D pt)=== | |||
Return the parameter of the point on the line which is closest to the passed point | |||
pt - Point2D - 2d position of point finding closest parameter to | |||
Back.jpg | |||
References | |||
Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information | |||
Category: SDK | |||
Navigation menu | |||
JimAndITalkPreferencesWatchlistContributionsLog outPageDiscussionReadEditView historyUnwatch | |||
More | |||
Search | |||
Search SDK Wiki | |||
Main page | |||
Recent changes | |||
Random page | |||
Help about MediaWiki | |||
This page was last edited on 28 July 2020, at 18:54. | |||
Privacy policyAbout SDK WikiDisclaimersPowered by MediaWiki | |||
[[File:Back.jpg|right|50px|link=Creating Vectors From Script]] | [[File:Back.jpg|right|50px|link=Creating Vectors From Script]] | ||
==References== | ==References== | ||
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information] | '''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information] |
Latest revision as of 12:01, 30 August 2024
This object represents a line span in a Contour. It is derived from the Span class and all methods and properties of the span class are valid on this object as well. As well as creating spans to append to a contour you can use the LineTo methods to avoid span creation.
Constructors
LineSpan(Point3D start_pt, Point3D end_pt)
A new span representing a line is created within a Lua script using this contructor method
start_pt - Point3D – 3D position for start point of span end_pt - Point3D – 3D position for end point of span
e.g
local start_pt = Point3D(0, 0, 0) local end_pt = Point3D(1.0, 0, 0)
local line_span = LineSpan(start_pt, end_pt)
LineSpan(Point2D start_pt, Point2D end_pt)
A new span representing aline is created within a Lua script using this contructor method
start_pt - Point2D - 2d position for start point of span end_pt - Point2D - 2d position for end point of span
e.g
local start_pt = Point2D(0, 0) local end_pt = Point2D(1.0, 0)
local line_span = LineSpan(start_pt, end_pt)
Methods
ClosestParameterToPoint( Point2D pt)
Return the parameter of the point on the line which is closest to the passed point
pt - Point2D - 2d position of point finding closest parameter to
Back.jpg References Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information
Category: SDK Navigation menu JimAndITalkPreferencesWatchlistContributionsLog outPageDiscussionReadEditView historyUnwatch More Search Search SDK Wiki Main page Recent changes Random page Help about MediaWiki This page was last edited on 28 July 2020, at 18:54. Privacy policyAbout SDK WikiDisclaimersPowered by MediaWiki
References
Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information