$Point class

dart_eval wrapper for Point

Implemented types

Constructors

$Point.wrap(Point<num> $value)
Create a $Point wrapping a Point.

Properties

$reified Point<num>
Fully reify the underlying value so it can be used in a Dart context. For example, recursively transform collections into their underlying $values.
no setteroverride
$value Point<num>
The backing Dart value of this $Value
final
hashCode int
The hash code for this object.
no setterinherited
magnitude double
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x num
no setteroverride
y num
no setteroverride

Methods

$getProperty(Runtime runtime, String identifier) $Value?
Get a property by identifier on this instance
override
$getRuntimeType(Runtime runtime) int
override
$setProperty(Runtime runtime, String identifier, $Value value) → void
Set a property by identifier on this instance to value
override
distanceTo(Point<num> other) double
Returns the distance between this and other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
squaredDistanceTo(Point<num> other) num
Returns the squared distance between this and other.
override
toString() String
A string representation of this object.
inherited

Operators

operator *(num factor) Point<num>
Scale this point by factor as if it were a vector.
override
operator +(Point<num> other) Point<num>
Add other to this, as if both points were vectors.
override
operator -(Point<num> other) Point<num>
Subtract other from this, as if both points were vectors.
override
operator ==(Object other) bool
The equality operator.
inherited

Static Methods

configureForCompile(BridgeDeclarationRegistry registry) → void
Configure this class for compilation in a Compiler.
configureForRuntime(Runtime runtime) → void
Configure this class for runtime in a Runtime.

Constants

$declaration → const BridgeClassDef
The bridge class definition for this class.