struct Sketchbook::Point
- Sketchbook::Point
- Struct
- Value
- Object
Overview
Represents a 2D Cartesian point, with an x and y floating point coordinates.
Defined in:
sys/point.crConstructors
Instance Method Summary
-
#*(other : Point)
Performs component-wise multiplication.
-
#*(factor : Number)
Performs component-wise multiplication by factor.
- #+(other : Point)
-
#-(other : Point)
Performs component-wise subtraction.
-
#/(factor : Number)
Performs component-wise division by factor.
-
#<=(other : Point)
Returns whether this point is above and to the left of other point.
- #clone
- #copy_with(x _x = @x, y _y = @y)
-
#max(other : Point)
Component-wise
Math.max
with other. -
#min(other : Point)
Component-wise
Math.min
with other. -
#vec2 : SF::Vector2i
Converts this point to
SF::Vector2i
. - #x : Float64
- #y : Float64
Constructor Detail
Instance Method Detail
Returns whether this point is above and to the left of other point.