| Modifier and Type | Method and Description |
|---|---|
Spheref |
Spheref.translate(float x,
float y,
float z)
Translate
this by the vector (x, y, z). |
Spheref |
Spheref.translate(float x,
float y,
float z,
Spheref dest)
Translate
this by the vector (x, y, z) and store the result in dest. |
Spheref |
Spheref.translate(org.joml.Vector3fc xyz)
Translate
this by the given vector xyz. |
Spheref |
Spheref.translate(org.joml.Vector3fc xyz,
Spheref dest)
Translate
this by the given vector xyz and store the result in dest. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Intersectiond.intersectRaySphere(Rayd ray,
Spheref sphere,
org.joml.Vector2d result)
Test whether the given ray intersects the given sphere,
and store the values of the parameter t in the ray equation p(t) = origin + t * dir for both points (near
and far) of intersections into the given
result vector. |
static boolean |
Intersectionf.intersectRaySphere(Rayf ray,
Spheref sphere,
org.joml.Vector2f result)
Test whether the given ray intersects the given sphere,
and store the values of the parameter t in the ray equation p(t) = origin + t * dir for both points (near
and far) of intersections into the given
result vector. |
static boolean |
Intersectiond.intersectSphereSphere(Spheref sphereA,
Spheref sphereB,
org.joml.Vector4d centerAndRadiusOfIntersectionCircle)
Test whether the one sphere with intersects the other sphere, and store the center of the circle of
intersection in the
(x, y, z) components of the supplied vector and the radius of that circle in the w component. |
static boolean |
Intersectionf.intersectSphereSphere(Spheref sphereA,
Spheref sphereB,
org.joml.Vector4f centerAndRadiusOfIntersectionCircle)
Test whether the one sphere with intersects the other sphere, and store the center of the circle of
intersection in the
(x, y, z) components of the supplied vector and the radius of that circle in the w component. |
boolean |
AABBdc.intersectsSphere(Spheref sphere)
Test whether this AABB intersects the given sphere.
|
boolean |
AABBfc.intersectsSphere(Spheref sphere)
Test whether this AABB intersects the given sphere.
|
boolean |
AABBi.intersectsSphere(Spheref sphere) |
boolean |
AABBf.intersectsSphere(Spheref sphere) |
boolean |
AABBd.intersectsSphere(Spheref sphere) |
boolean |
AABBic.intersectsSphere(Spheref sphere)
Test whether this AABB intersects the given sphere.
|
static boolean |
Intersectiond.testAabSphere(AABBd aabb,
Spheref sphere)
Test whether the given axis-aligned box intersects the given sphere.
|
static boolean |
Intersectionf.testAabSphere(AABBf aabb,
Spheref sphere)
Test whether the given axis-aligned box intersects the given sphere.
|
static boolean |
Intersectionf.testAabSphere(AABBi aabb,
Spheref sphere)
Test whether the given axis-aligned box intersects the given sphere.
|
static boolean |
Intersectiond.testPlaneSphere(Planed plane,
Spheref sphere)
Test whether the given plane intersects the given sphere with center.
|
static boolean |
Intersectionf.testPlaneSphere(Planef plane,
Spheref sphere)
Test whether the given plane intersects the given sphere with center.
|
static boolean |
Intersectiond.testRaySphere(Rayd ray,
Spheref sphere)
Test whether the given ray intersects the given sphere.
|
static boolean |
Intersectionf.testRaySphere(Rayf ray,
Spheref sphere)
Test whether the given ray intersects the given sphere.
|
Spheref |
Spheref.translate(float x,
float y,
float z,
Spheref dest)
Translate
this by the vector (x, y, z) and store the result in dest. |
Spheref |
Spheref.translate(org.joml.Vector3fc xyz,
Spheref dest)
Translate
this by the given vector xyz and store the result in dest. |
| Constructor and Description |
|---|
Spheref(Spheref source)
Create a new
Spheref as a copy of the given source. |
Copyright © 2020 JOML. All rights reserved.