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.
read-only
radius double
The radius of the sphere.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited