BufferGeometry
Object3D
Raycaster
Camera
CubeCamera
PerspectiveCamera
OrthographicCamera
StereoCamera
Clock
Curve
CurvePath
Path
Shape
ShapePath
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
HemisphereLightHelper
PlaneHelper
PointLightHelper
SkeletonHelper
SpotLightHelper
Light
PointLight
RectAreaLight
SpotLight
DirectionalLight
HemisphereLight
LightShadow
PointLightShadow
AnimationLoader
AudioLoader
BufferGeometryLoader
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
Loader
LoaderUtils
MaterialLoader
ObjectLoader
TextureLoader
LoadingManager
Material
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
keyframeTrack
PropertyBinding
PropertyMixer
BooleanKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
Audio
AudioAnalyser
AudioContext
AudioListener
PositionalAudio

Cylindrical.copy()

作用

用于将一个Cylindrical对象的属性值复制到当前对象中。

语法

copy( other: Cylindrical ): Cylindrical

参数

  • other: 要复制属性值的Cylindrical对象。

返回值

返回当前对象,即复制后的Cylindrical对象。

示例

const fromCylindrical = new THREE.Cylindrical(5, Math.PI / 3, 10);
const toCylindrical = new THREE.Cylindrical();

toCylindrical.copy(fromCylindrical);

console.log(toCylindrical.radius); // 输出:5
console.log(toCylindrical.theta); // 输出:1.0471975511965976
console.log(toCylindrical.y); // 输出:10

注意事项

  • 该方法不会创建一个新的对象,而是会改变当前对象的属性值。

参考链接