PointF3D

  • PointF3D represents a 3D point and extends the Object class.

  • A PointF3D object can be created using its constructor or the static from method with X, Y, and Z coordinates.

  • The class provides methods to retrieve the X, Y, and Z values of the point.

public abstract class PointF3D extends Object

Represents a 3D point.

Public Constructor Summary

Public Method Summary

static PointF3D
from (float x, float y, float z)
Creates a 3D point with given X, Y, Z coordinate values.
abstract float
getX ()
Returns the X value of the point.
abstract float
getY ()
Returns the Y value of the point.
abstract float
getZ ()
Returns the Z value of the point.

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public PointF3D ()

Public Methods

public static PointF3D from (float x, float y, float z)

Creates a 3D point with given X, Y, Z coordinate values.

The return value is always non-null.

public abstract float getX ()

Returns the X value of the point.

public abstract float getY ()

Returns the Y value of the point.

public abstract float getZ ()

Returns the Z value of the point.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年10月31日 UTC.