LineSpan: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[File:Back.jpg|right|50px|link=Creating Vectors From Script]] | |||
LineSpan | LineSpan | ||
Jump to navigationJump to search | Jump to navigationJump to search | ||
Line 68: | Line 68: | ||
This page was last edited on 28 July 2020, at 18:54. | This page was last edited on 28 July 2020, at 18:54. | ||
Privacy policyAbout SDK WikiDisclaimersPowered by MediaWiki | Privacy policyAbout SDK WikiDisclaimersPowered by MediaWiki | ||
[[File:Back.jpg|right|50px|link=Creating Vectors From Script]] | |||
==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] |
Revision as of 20:21, 3 August 2021
LineSpan Jump to navigationJump to search Back.jpg 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