Skip to content

Commit

Permalink
shapes/custom: javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Apr 30, 2024
1 parent b683bf7 commit d14ca6a
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public float getRadius() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For a cone, scaling must preserve the circular cross section.
* Test whether the specified scale factors can be applied to the shape. For
* a cone, scaling must preserve the circular cross section.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ public float getRadius() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For a cylinder, scaling must preserve the circular cross section.
* Test whether the specified scale factors can be applied to the shape. For
* a cylinder, scaling must preserve the circular cross section.
*
* TODO allow general scaling
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public float getB() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For a conical frustum, scaling must preserve the circular cross section.
* Test whether the specified scale factors can be applied to the shape. For
* a conical frustum, scaling must preserve the circular cross section.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ public float getRadius() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For a half cylinder, scaling must preserve the semicircular cross
* section.
* Test whether the specified scale factors can be applied to the shape. For
* a half cylinder, scaling must preserve the semicircular cross section.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public float getRadius() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For a hemisphere, scaling must be uniform.
* Test whether the specified scale factors can be applied to the shape. For
* a hemisphere, scaling must be uniform.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public float getRadius() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For this shape, scaling must preserve the circular cross section.
* Test whether the specified scale factors can be applied to the shape. For
* this shape, scaling must preserve the circular cross section.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE

/**
* A collision shape for a elliptic paraboloid with a circular cap and uniform
* density. By convention, the vertex lies on the -Y axis, and the center of the
* cap lies on the +Y axis.
* density. By convention, the vertex lies on the local -Y axis, and the center
* of the cap lies on the local +Y axis.
* <p>
* This is an imprecise shape; margin always expands the shape.
*
Expand Down Expand Up @@ -125,8 +125,8 @@ public float getRadius() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For this shape, scaling must preserve the circular cross section.
* Test whether the specified scale factors can be applied to the shape. For
* this shape, scaling must preserve the circular cross section.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public float yMin() {
// CustomConvexShape methods

/**
* Test whether the specified scale factors can be applied to this shape.
* For a spherical segment, scaling must be uniform.
* Test whether the specified scale factors can be applied to the shape. For
* a spherical segment, scaling must be uniform.
*
* @param scale the desired scale factor for each local axis (may be null,
* unaffected)
Expand Down

0 comments on commit d14ca6a

Please sign in to comment.