全景相片
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
公用建構函式
|
Sphere() 建立中心為 (0,0,0) 且半徑為 1 的球體。
|
|
Sphere (浮點半徑) 建立中心為 (0,0,0) 且指定半徑的球體。
|
|
|
沿用的方法
從 java.lang.Object 類別
物件
|
clone()
|
布林 |
|
void
|
finalize()
|
最終 Class<?> |
getClass()
|
整數 |
hashCode()
|
Final void
|
notify()
|
Final void
|
notifyAll()
|
字串
|
toString()
|
Final void
|
wait(long arg0, int arg1)
|
Final void
|
wait(long arg0)
|
Final void
|
wait()
|
公用建構函式
公開
Sphere
()
建立中心為 (0,0,0) 且半徑為 1 的球體。
公用方法
public float
getRadius
()
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-09-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2022-09-26 (世界標準時間)。"],[[["`Sphere` is a mathematical representation used for intersection and collision tests."],["It provides constructors to create spheres with specified centers and radii, defaulting to (0,0,0) and radius 1 if not provided."],["Public methods allow access and modification of the sphere's center and radius."],["`Sphere` inherits methods from `CollisionShape` and `Object` for broader functionality."],["It's primarily used within the Sceneform library for 3D interactions and collision detection."]]],["The `Sphere` class represents a mathematical sphere for collision and intersection tests. Key actions include: creating a sphere with a default center (0,0,0) and radius 1, or with a specified radius and/or center via constructors. It allows setting and getting the sphere's center and radius using `setCenter`, `getCenter`, `setRadius`, and `getRadius`. It can make copies using `makeCopy`. The class also inherits `makeCopy` from the CollisionShape class.\n"]]