Class: Circle
July 15, 2024 · View on GitHub
redis-om / Circle
Class: Circle
A builder that defines a circle.
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new Circle()
Accessors
feet
• get feet(): this
Sets the units to feet.
Returns
this
This instance.
Defined in
foot
• get foot(): this
Sets the units to feet.
Returns
this
This instance.
Defined in
ft
• get ft(): this
Sets the units to feet.
Returns
this
This instance.
Defined in
kilometer
• get kilometer(): this
Sets the units to kilometers.
Returns
this
This instance.
Defined in
kilometers
• get kilometers(): this
Sets the units to kilometers.
Returns
this
This instance.
Defined in
km
• get km(): this
Sets the units to kilometers.
Returns
this
This instance.
Defined in
m
• get m(): this
Sets the units to meters.
Returns
this
This instance.
Defined in
meter
• get meter(): this
Sets the units to meters.
Returns
this
This instance.
Defined in
meters
• get meters(): this
Sets the units to meters.
Returns
this
This instance.
Defined in
mi
• get mi(): this
Sets the units to miles.
Returns
this
This instance.
Defined in
mile
• get mile(): this
Sets the units to miles.
Returns
this
This instance.
Defined in
miles
• get miles(): this
Sets the units to miles.
Returns
this
This instance.
Defined in
Methods
latitude
▸ latitude(value): Circle
Sets the latitude. If not set, defaults to 0.0.
Parameters
| Name | Type | Description |
|---|---|---|
value | number | The latitude. |
Returns
This instance.
Defined in
longitude
▸ longitude(value): Circle
Sets the longitude. If not set, defaults to 0.0.
Parameters
| Name | Type | Description |
|---|---|---|
value | number | The longitude. |
Returns
This instance.
Defined in
origin
▸ origin(point): Circle
Sets the origin of the circle using a Point. If not set, defaults to Null Island.
Parameters
| Name | Type | Description |
|---|---|---|
point | Point | A Point containing the longitude and latitude of the origin. |
Returns
This instance.
Defined in
▸ origin(longitude, latitude): Circle
Sets the origin of the circle. If not set, defaults to Null Island.
Parameters
| Name | Type | Description |
|---|---|---|
longitude | number | The longitude. |
latitude | number | The latitude. |
Returns
This instance.
Defined in
radius
▸ radius(size): Circle
Sets the radius of the Circle. Defaults to 1. If units are not specified, defaults to meters.
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The radius of the circle. |
Returns
This instance.