球体
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
球の数学的表現。球体に対して交差テストと衝突テストを実行します。
パブリック コンストラクタ
|
Sphere() 中心(0,0,0)と半径 1 の球体を作成します。
|
|
球(浮動小数点半径)
中心(0,0,0)と指定した半径の球を作成します。
|
|
|
継承されるメソッド
java.lang.Object クラスから
オブジェクト |
clone()
|
ブール値 |
|
void |
finalize()
|
finalClass<PLURALgt; |
getClass()
|
整数 |
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
文字列 |
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
パブリック コンストラクタ
public
Sphere
()
中心(0,0,0)と半径 1 の球体を作成します。
public
球体
(浮動小数点半径)
中心(0,0,0)と指定した半径の球を作成します。
public
Sphere
(浮動小数点半径、Vector3 センター)
パブリック メソッド
public
float
getRadius
()
public
void
setCenter
(Vector3 センター)
public
void
setRadius
(浮動小数点数)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-09-26 UTC。
[[["わかりやすい","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 UTC。"],[[["`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"]]