DrawingBlockVisualCreateLine Method (Document, Vector3, Vector3, Color) |
Create a new DrawingBlockVisual which contains a single line.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 18.04.00
Syntaxpublic static DrawingBlockVisual CreateLine(
Document doc,
Vector3 lineStart,
Vector3 lineEnd,
Color lineColor
)
Parameters
- doc
- Type: Demo3D.VisualsDocument
The document to add the visual to. - lineStart
- Type: Microsoft.DirectXVector3
The start point of the line local to the new Visual. - lineEnd
- Type: Microsoft.DirectXVector3
The end point of the line local to the new Visual. - lineColor
- Type: System.DrawingColor
The color of the new line.
Return Value
Type:
DrawingBlockVisualA new DrawingBlockVisual which contains a single line.
See Also