Position class

Represents a 3D position vector.

Constructors

Position.new(Vector3 vector)
Creates a Position from a Vector3.
const
Position.fromCoordinates(double x, double y, double z)
Creates a Position from coordinates.
Position.fromJson(Map<String, dynamic> json)
Creates a Position from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vector → Vector3
The underlying 3D vector.
final
x double
The x-coordinate.
no setter
y double
The y-coordinate.
no setter
z double
The z-coordinate.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this Position to a JSON map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override