Class: SDC::DrawShapeTriangle

Inherits:
DrawShape show all
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

Attributes inherited from DrawShape

#fill_color, #origin, #outline_color, #outline_thickness, #position, #rotation, #scale, #texture_rect

Instance Method Summary collapse

Methods inherited from DrawShape

#link_texture

Constructor Details

#initializeDrawShapeTriangle

Creates an empty triangle shape



# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 9

Instance Attribute Details

#side_1Coordinates

First triangle side vector

Returns:



# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 14

#side_2Coordinates

Second triangle side vector

Returns:



# 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

Parameters:

  • collision_shape

    CollisionShapeTriangle

Returns:

  • (nil)


# File 'engine_docs/automatic_doc_DrawShapeTriangle.rb', line 22