ViewPoint class final
A point in a view, in logical pixels from its top-left corner, with the view's size: what Camera.screenPointToRay needs to aim a ray. Finger.position and Input.mousePosition give pointer positions as these.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
The view's height, in the same logical pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
The view's width, in the same logical pixels.
final
- x → double
-
Logical pixels from the view's left edge.
final
- y → double
-
Logical pixels from the view's top edge, growing downwards.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toVec2(
) → Vec2 - Its x and y, as for a trail drawn on the screen.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override