Point class
A Point object represents a point in a cartesian Point system for a three-dimensional space
Constructors
- Point(double x, double y, [double z = 0])
-
Factory constructor with parameters for each dimension
factory
-
Point.fromJson(Map<
String, dynamic> m) -
Factory constructor which reads x-y-z-values from a map
factory
-
Point.list(List<
double> l) -
Factory constructor which reads x-y-z-values from a list
factory
- Point.origin()
-
Factory constructor which returns the origin Point
factory
- Point.vector(Vector v)
-
Factory constructor which reads x-y-z-values from a vector
factory
Properties
Methods
-
copy(
) → Point - Creates a new Point object with identical x-y-z-values
-
distanceTo(
Point other) → double -
Returns the Euclidean distance to
other
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
to2DList(
) → List< double> -
toJson(
) → Map< String, dynamic> -
toList(
) → List< double> -
toString(
) → String -
A string representation of this object.
override
-
toVector(
) → Vector
Operators
-
operator +(
Point summand) → Point -
operator -(
Point subtrahend) → Point -
operator /(
num divisor) → Point -
operator ==(
Object other) → bool -
The equality operator.
override