class Nya::Render::Rect
- Nya::Render::Rect
- Reference
- Object
Overview
Rectangle
Included Modules
- Nya::Serializable
Defined in:
nya/render/rect.crConstant Summary
-
NYA_REGISTERED =
true
-
PROPERTIES =
{"x" => "Float64", "y" => "Float64", "width" => "Float64", "height" => "Float64"} of String => String
Constructors
Class Method Summary
- .deserialize(xml, ctx : SerializationContext | Nil = nil)
- .transform_name(name)
-
.xml_name
Returns XML compatible name of a type (see
Nya::Serializable.translate_type
)
Instance Method Summary
-
#*(vec : CrystalEdge::Vector2)
Multiplies rectangle by a vector
-
#|(other : self)
Returns a rectangle containing
self
andother
- #height : Float64
- #height=(height : Float64)
- #max_x
- #max_x=(x)
- #max_y
- #max_y=(y)
- #width : Float64
- #width=(width : Float64)
- #x : Float64
- #x=(x : Float64)
- #y : Float64
- #y=(y : Float64)