resize method
(en) Resizes the object to the specified magnification based on the center of the object.
(ja) オブジェクトの中心を基準に、指定した倍率にリサイズします。
mag
: Magnification when enlarging.
Returns : This object.
Implementation
Sp3dObj resize(double mag) {
final Sp3dV3D c = getCenter();
for (Sp3dV3D i in vertices) {
i.set(c + (i - c) * mag);
}
return this;
}