Class Line
Line represented as set of two points connected with a cylinder 3D primitive object.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Marus.Visualization.Primitives
Assembly: cs.temp.dll.dll
Syntax
public class Line : VisualElement
Constructors
Line(Vector3, Vector3)
Declaration
public Line(Vector3 start, Vector3 end)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | start | |
Vector3 | end |
Line(Vector3, Vector3, Single)
Declaration
public Line(Vector3 start, Vector3 end, float width)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | start | |
Vector3 | end | |
System.Single | width |
Line(Vector3, Vector3, Single, Color)
Declaration
public Line(Vector3 start, Vector3 end, float width, Color _color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | start | |
Vector3 | end | |
System.Single | width | |
Color | _color |
Fields
EndPoint
Ending point of the line
Declaration
public Vector3 EndPoint
Field Value
Type | Description |
---|---|
Vector3 |
LineColor
Line color
Declaration
public Color LineColor
Field Value
Type | Description |
---|---|
Color |
StartPoint
Starting point of the line
Declaration
public Vector3 StartPoint
Field Value
Type | Description |
---|---|
Vector3 |
Thickness
Line thickness
Declaration
public float Thickness
Field Value
Type | Description |
---|---|
System.Single |
Methods
Destroy()
Remove from scene and destroy object
Declaration
public override void Destroy()
Overrides
Draw()
Draw line
Declaration
public override void Draw()
Overrides
SetColor(Color)
Sets line color
Declaration
public void SetColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
SetParent(GameObject)
Declaration
public void SetParent(GameObject parent)
Parameters
Type | Name | Description |
---|---|---|
GameObject | parent |
SetThickness(Single)
Sets line thickness
Declaration
public void SetThickness(float width)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width |