Sp3dFragment class
(en) A flutter implementation of Sp3dFragment. Sp3dFragment is a class that handles part information used in simple3dObj.
(ja) Sp3dFragmentのflutter実装です。 Sp3dFragmentはsimple3dObj内で使用される、部品情報を扱うクラスです。
Author Masahide Mori
First edition creation date 2021-06-30 23:21:09
Constructors
-
Sp3dFragment(List<
Sp3dFace> faces, {bool isParticle = false, double r = 0, Sp3dPhysics? physics, bool isTouchable = true, String? name, Map<String, dynamic> ? option}) - Constructor
Properties
-
faces
↔ List<
Sp3dFace> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isParticle ↔ bool
-
getter/setter pair
- isTouchable ↔ bool
-
getter/setter pair
- name ↔ String?
-
getter/setter pair
-
option
↔ Map<
String, dynamic> ? -
getter/setter pair
- physics ↔ Sp3dPhysics?
-
getter/setter pair
- r ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deepCopy(
) → Sp3dFragment - Deep copy the object.
-
getCenter(
Sp3dObj parent) → Sp3dV3D - (en)Gets the average coordinates of this fragment.
-
move(
Sp3dObj parent, Sp3dV3D v) → Sp3dFragment - (en)Adds the specified vector to all vectors of this Fragment.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reverse(
) → void - (en)Flips the orientation of all faces.
-
reversed(
) → Sp3dFragment - (en)Creates and returns a new fragment with all faces flipped.
-
rotate(
Sp3dObj parent, Sp3dV3D norAxis, double radian) → Sp3dFragment - (en)Rotates all vectors of this fragment based on the specified axis.
-
rotateBy(
Sp3dV3D center, Sp3dObj parent, Sp3dV3D norAxis, double radian) → Sp3dFragment - (en)Rotates all vectors of this fragment based on the specified axis. This method allows you to rotate this fragment around any point.
-
rotateInPlace(
Sp3dObj parent, Sp3dV3D norAxis, double radian) → Sp3dFragment - (en)Rotates all vectors of this fragment based on the specified axis. Unlike rotate, rotateInPlace will perform the rotation with this fragment's mean coordinate as the origin.
-
toDict(
) → Map< String, dynamic> - Convert the object to a dictionary.
-
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) → Sp3dFragment - Restore this object from the dictionary.