 |
LineNode(Vector3, Vector3, Color4, Single, String) Constructor |
Constructor
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic LineNode(
Vector3 startPosition,
Vector3 endPosition,
Color4 lineColor,
float lineThickness,
string? name = null
)
Parameters
- startPosition Vector3
- line start position as Vector3
- endPosition Vector3
- line end position as Vector3
- lineColor Color4
- line color as Color4 (not alpha pre-multiplied)
- lineThickness Single
- line thickness in screen-space (in pixels divided by dpi scale; e.g. lineThickness: 10 and dpiScale: 1.5 will produce actual thickness with 15 pixels)
- name String (Optional)
- optional name
See Also