Sp3dCameraRotationController class
(en)Class for adjusting camera rotation. Creating a subclass and giving it to Sp3dRenderer allows complex camera control.
(ja)カメラの回転を調整するためのクラスです。 サブクラスを作ってSp3dRendererに与えることで複雑なカメラコントロールが可能になります。
Author Masahide Mori
First edition creation date 2023-01-02 11:41:05
Constructors
- Sp3dCameraRotationController({double rotationSpeed = 1.0, Sp3dV2D sp = _zero, Sp3dV3D? axis, Sp3dV2D diff = _zero, Sp3dV2D lastDiff = _zero})
- Constructor
Properties
- axis ↔ Sp3dV3D
-
getter/setter pair
- diff ↔ Sp3dV2D
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastDiff ↔ Sp3dV2D
-
getter/setter pair
- rotationSpeed ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sp ↔ Sp3dV2D
-
getter/setter pair
Methods
-
apply(
Sp3dCamera camera, Sp3dGestureDetails d) → void - (en)A method that rotates the camera according to the user's gesture. By providing a subclass that overrides this method, you can control the rotate of the camera in detail.
-
deepCopy(
) → Sp3dCameraRotationController - deep copy.
-
endProcess(
) → void - run onPanCancel or onPanEnd.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDict(
) → Map< String, dynamic> - Used to save state.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDict(
Map< String, dynamic> src) → Sp3dCameraRotationController - Used to restore state.