Figure class represents any triangulated shape. It is used to draw any types of custom shapes.
More...

List< float[]>  GetFigure () 
 Getting list of pairs  [x, y] coordinates of a shape. More...


bool  IsFixed () 
 Is Figure fixed. More...


 Figure (bool isFixed, List< float[]> triangles) 
 Constructs a Figure with specified triangles and specified fixed flag. More...


 Figure (List< float[]> triangles) 
 Constructs a Figure with specified triangles. More...


List< float[]>  UpdatePosition (int x, int y) 
 Updating the coordinates of triangles with specified shifts along the X and Y axis. More...


Figure class represents any triangulated shape. It is used to draw any types of custom shapes.
◆ Figure() [1/2]
SpaceVIL.Decorations.Figure.Figure 
( 
bool 
isFixed, 


List< float[]> 
triangles 

) 
 
Constructs a Figure with specified triangles and specified fixed flag.
 Parameters

isFixed  True: if shape can not be resized. False: if shape can be resised. 
triangles  Triangles list of the Figure's shape. 
◆ Figure() [2/2]
SpaceVIL.Decorations.Figure.Figure 
( 
List< float[]> 
triangles  ) 

Constructs a Figure with specified triangles.
 Parameters

triangles  Triangles list of the Figure's shape. 
◆ GetFigure()
List<float[]> SpaceVIL.Decorations.Figure.GetFigure 
( 
 ) 

Getting list of pairs  [x, y] coordinates of a shape.
 Returns
 Figure points list as List of float[2] array.
◆ IsFixed()
bool SpaceVIL.Decorations.Figure.IsFixed 
( 
 ) 

Is Figure fixed.
 Returns
 True: if shape can not be resized. False: if shape can be resised.
◆ UpdatePosition()
List<float[]> SpaceVIL.Decorations.Figure.UpdatePosition 
( 
int 
x, 


int 
y 

) 
 
Updating the coordinates of triangles with specified shifts along the X and Y axis.
 Parameters

x  Shift by Xaxis. 
y  Shift by Yaxis. 
 Returns
 Updated points list changed according to the new shift by (x, y)
The documentation for this class was generated from the following file: