Sphere class

Defines a sphere with a center and a radius.

Constructors

Sphere()
Create a new, uninitialized sphere.
Sphere.centerRadius(Vector3 center, double radius)
Create a sphere from a center and a radius.
Sphere.copy(Sphere other)
Create a sphere as a copy of other.

Properties

center → Vector3
The center of the sphere.
no setter
hashCode → int
The hash code for this object.
no setterinherited
radius ↔ double
The radius of the sphere.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

containsVector3(Vector3 other) → bool
Return if this contains other.
copyFrom(Sphere other) → void
Copy the sphere from other into this.
intersectsWithSphere(Sphere other) → bool
Return if this intersects with other.
intersectsWithVector3(Vector3 other) → bool
Return if this intersects with other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited