Specifies what type of minimum bounding geometry the output polygons will represent. RECTANGLEBYAREA —The rectangle of the smallest area enclosing an input feature. This is the default. RECTANGLEBYWIDTH —The rectangle of the smallest width enclosing an input feature. CONVEXHULL —The smallest convex polygon enclosing an input feature. A rectangle is a two dimensional closed figure with four straight lines. The opposite sides of a triangle are congruent. The opposite sides are parallel A rectangle has four right angles The diagonals of a rectangle bisect and form opposite central angles that are congruent. A 4-sided flat shape with straight sides where all interior angles are right angles (90°). Also opposite sides are parallel and of equal length. Example: A square is a special type of rectangle. Area & Perimeter of a Rectangle calculator uses length and width of a rectangle, and calculates the perimeter, area and diagonal length of the rectangle. It is an online Geometry tool requires two length sides of a rectangle.
(Jump to Area of a Rectangle or Perimeter of a Rectangle)
A rectangle is a four-sided flat shape where every angle is a right angle (90°).
means 'right angle' | |
are equal sides | |
are equal sides |
Each internal angle is 90° |
Opposite sides are parallel and of equal length (so it is a Parallelogram). |
Play with a rectangle:
Area of a Rectangle
Area = a × b |
Example: A rectangle is 6 m wide and 3 m high, what is its Area?
= 18 m2
Perimeter of a Rectangle
The Perimeter is the distance around the edges.
The Perimeter is 2 times (a + b): Rick and morty sketch. Perimeter = 2(a+b) |
Example: A rectangle is 12 cm long and 5 cm tall, what is its Perimeter?
= 2 × 17 cm
Diagonals of a Rectangle
A rectangle has two diagonals, they are equal in length and intersect in the middle. |
A diagonal's length is the square root of (a squared + b squared): Diagonal 'd' = √(a2 + b2) |
Example: A rectangle is 12 cm wide, and 5 cm tall, what is the length of a diagonal?
= √(144 + 25)
= 13 cm
Golden Rectangle
There is also a special rectangle called the Golden Rectangle: Reaper justin frankel.
new Cesium.RectangleGeometry(options)
A description of a cartographic rectangle on an ellipsoid centered at the origin. Rectangle geometry can be rendered with both
Primitive
and GroundPrimitive
.![Rectangle Geometry Rectangle Geometry](/uploads/1/3/7/5/137564690/676233388.jpg)
Name | Type | Description | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | Object with the following properties:
|
Throws:
- DeveloperError:
options.rectangle.north
must be in the interval [-Pi/2
,Pi/2
]. - DeveloperError:
options.rectangle.south
must be in the interval [-Pi/2
,Pi/2
]. - DeveloperError:
options.rectangle.east
must be in the interval [-Pi
,Pi
]. - DeveloperError:
options.rectangle.west
must be in the interval [-Pi
,Pi
]. - DeveloperError:
options.rectangle.north
must be greater thanoptions.rectangle.south
.
Example:
Demo:
See:
- RectangleGeometry#createGeometry
Members
static Cesium.RectangleGeometry.packedLength : Number
The number of elements used to pack the object into an array.
Methods
static Cesium.RectangleGeometry.computeRectangle(options, result) → Rectangle
Computes the bounding rectangle based on the provided options
Name | Type | Description | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | Object with the following properties:
| |||||||||||||||||||
result | Rectangle | optional An object in which to store the result. |
Returns:
static Cesium.RectangleGeometry.createGeometry(rectangleGeometry) → Geometry|undefined
Computes the geometric representation of a rectangle, including its vertices, indices, and a bounding sphere.
Name | Type | Description |
---|---|---|
rectangleGeometry | RectangleGeometry | A description of the rectangle. |
Rectangle Geometry Meaning
Returns:
Throws:
- DeveloperError: Rotated rectangle is invalid.
Rectangle Geometry Definition
static Cesium.RectangleGeometry.pack(value, array, startingIndex) → Array.<Number>
Stores the provided instance into the provided array.
Name | Type | Default | Description |
---|---|---|---|
value | RectangleGeometry | The value to pack. | |
array | Array.<Number> | The array to pack into. | |
startingIndex | Number | 0 | optional The index into the array at which to start packing the elements. |
Returns:
static Cesium.RectangleGeometry.unpack(array, startingIndex, result) → RectangleGeometry
Retrieves an instance from a packed array.
Rectangle Geometry
Name | Type | Default | Description |
---|---|---|---|
array | Array.<Number> | The packed array. | |
startingIndex | Number | 0 | optional The starting index of the element to be unpacked. |
result | RectangleGeometry | optional The object into which to store the result. |
Rectangle Geometry Wpf
Returns:
The modified result parameter or a new RectangleGeometry instance if one was not provided.