UI Node Connect 4  v4.1
MeadowGames.UINodeConnect4.GraphicRenderer.Line Class Reference

Classes

class  LineCap
 

Public Member Functions

void Draw (UICLineRenderer lineRenderer)
 
void SetPoints (Vector2[] newPoints)
 Replace all points by the newPoints More...
 
float GetLength ()
 
System.Tuple< Vector2, float > LerpLine (float pos01)
 returns point in the line based on percent from 0 to 1 More...
 
System.Tuple< Vector2, float > LerpLineLength (float posLength)
 returns point in the line based on length More...
 
Line Clone ()
 

Public Attributes

LineCap capStart
 
LineCap capEnd
 
string ID = "line"
 
float startWidth = 3
 
float endWidth = 3
 
float dashDistance = 5
 
Color color = new Color(0.98f, 0.94f, 0.84f)
 
List< Vector2 > points = new List<Vector2>()
 
LineStyle.Type lineStyle = LineStyle.Type.Solid
 
float length
 
LineAnimation animation = new LineAnimation()
 

Member Function Documentation

◆ LerpLine()

System.Tuple<Vector2, float> MeadowGames.UINodeConnect4.GraphicRenderer.Line.LerpLine ( float  pos01)
inline

returns point in the line based on percent from 0 to 1

Parameters
pos01percent from 0 to 1
Returns
(Vector2) point and (float) angle at this percent

◆ LerpLineLength()

System.Tuple<Vector2, float> MeadowGames.UINodeConnect4.GraphicRenderer.Line.LerpLineLength ( float  posLength)
inline

returns point in the line based on length

Parameters
pos01target legth
Returns
(Vector2) point and (float) angle at this length

◆ SetPoints()

void MeadowGames.UINodeConnect4.GraphicRenderer.Line.SetPoints ( Vector2[]  newPoints)
inline

Replace all points by the newPoints

Parameters
newPoints