tida ~master (2021-10-06T18:27:09Z)
Home
Dub
Repo
Shape.Rectangle
tida
shape
Shape
Creates a rectangle.
struct
Shape
(T : float)
@
safe
nothrow pure static
Shape
!
T
Rectangle
(
Vector
!
T
begin
,
Vector
!
T
end
)
if
(
isNumeric
!
T
&&
isMutable
!
T
&&
isSigned
!
T
)
Parameters
begin
Vector
!
T
Rectangle begin.
end
Vector
!
T
Rectangle end.
Return Value
Type:
Shape
!
T
Rectangle.
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
Creates a rectangle.