class GSF::EllipseShape
- GSF::EllipseShape
- SF::Shape
- SF::Transformable
- Reference
- Object
Defined in:
gsf/ellipse_shape.crConstructors
Instance Method Summary
-
#get_point(index : Int) : SF::Vector2f
Get a point of the shape
-
#point_count : Int32
Get the total number of points of the shape
- #point_count=(point_count : Int)
- #radius : SF::Vector2f
- #radius=(radius : SF::Vector2f | Tuple(Number, Number))
Constructor Detail
def self.new(radius : SF::Vector2f | Tuple(Number, Number) = SF::Vector2f.new, point_count : Int = 30)
#
Instance Method Detail
def get_point(index : Int) : SF::Vector2f
#
Description copied from class SF::Shape
Get a point of the shape
The returned point is in local coordinates, that is, the shape's transforms (position, rotation, scale) are not taken into account. The result is undefined if index is out of the valid range.
- index - Index of the point to get, in range
0 ... point_count
Returns: index-th point of the shape
See also: #point_count
def point_count : Int32
#
Description copied from class SF::Shape
Get the total number of points of the shape
Returns: Number of points of the shape
See also: point