korlibs
Toggle table of contents
6.1.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
korlibs
korlibs-math-vector
/
korlibs.math.geom
/
Circle
Circle
data
class
Circle
(
val
center
:
Point
,
val
radius
:
Double
)
:
SimpleShape2D
Members
Constructors
Circle
Link copied to clipboard
constructor
(
center
:
Point
,
radius
:
Double
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
area
Link copied to clipboard
open
override
val
area
:
Double
center
Link copied to clipboard
open
override
val
center
:
Point
closed
Link copied to clipboard
open
override
val
closed
:
Boolean
perimeter
Link copied to clipboard
open
override
val
perimeter
:
Double
radius
Link copied to clipboard
val
radius
:
Double
radius
Squared
Link copied to clipboard
val
radiusSquared
:
Double
Functions
contains
Point
Link copied to clipboard
open
override
fun
containsPoint
(
p
:
Point
)
:
Boolean
distance
Link copied to clipboard
open
override
fun
distance
(
p
:
Point
)
:
Double
distance
Closest
Squared
Link copied to clipboard
fun
distanceClosestSquared
(
p
:
Point
)
:
Double
distance
Farthest
Squared
Link copied to clipboard
fun
distanceFarthestSquared
(
p
:
Point
)
:
Double
distance
To
Center
Squared
Link copied to clipboard
fun
distanceToCenterSquared
(
p
:
Point
)
:
Double
get
Bounds
Link copied to clipboard
open
override
fun
getBounds
(
)
:
Rectangle
normal
Vector
At
Link copied to clipboard
open
override
fun
normalVectorAt
(
p
:
Point
)
:
Vector2D
projected
Point
Link copied to clipboard
open
override
fun
projectedPoint
(
p
:
Point
)
:
Point