tida ~master (2021-10-06T18:27:09Z)
Home
Dub
Repo
Shape.scale
tida
shape
Shape
Resizes as a percentage.
struct
Shape
(T : float)
@
safe
nothrow pure
void
scale
(
T
k
)
in (type != ShapeType.point)
if
(
isNumeric
!
T
&&
isMutable
!
T
&&
isSigned
!
T
)
Parameters
k
T
Percentage.
Meta
Source
See Implementation
tida
shape
Shape
aliases
Type
bottom
left
right
top
functions
move
scale
to
toString
properties
begin
end
endX
endY
height
length
radius
vertex
vertexs
width
x
y
static functions
Circle
CircleLine
Line
Multi
Point
Polygon
Rectangle
RectangleLine
RoundRectangle
RoundRectangleLine
Square
Triangle
TriangleLine
variables
data
isSolid
shapes
type
Resizes as a percentage.