Class: SDC::DrawShapeTriangle
- Defined in:
- engine_docs/automatic_doc_DrawShapeTriangle.rb,
engine_docs/automatic_doc_DrawShapeTriangle.rb
Overview
Drawing shape class for a triangle
Instance Attribute Summary collapse
-
#side_1 ⇒ Coordinates
First triangle side vector.
-
#side_2 ⇒ Coordinates
Second triangle side vector.
Attributes inherited from DrawShape
#fill_color, #origin, #outline_color, #outline_thickness, #position, #rotation, #scale, #texture_rect
Instance Method Summary collapse
-
#get_from(collision_shape) ⇒ nil
Copies properties from the given shape to this shape.
-
#initialize ⇒ DrawShapeTriangle
constructor
Creates an empty triangle shape.
Methods inherited from DrawShape
Constructor Details
#initialize ⇒ DrawShapeTriangle
Creates an empty triangle shape
|
# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 9
|
Instance Attribute Details
#side_1 ⇒ Coordinates
First triangle side vector
|
# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 14
|
#side_2 ⇒ Coordinates
Second triangle side vector
|
# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 18
|
Instance Method Details
#get_from(collision_shape) ⇒ nil
Copies properties from the given shape to this shape
|
# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 22
|