Scene3DVector Class
A three-dimensional vector in space.
Declaration
public final class Scene3DVector extends Struct<Scene3DVector> implements IEquatable<Scene3DVector>
Implements
Inherited Members
Inheritance
Constructors
Scene3DVector() Constructor
Initializes a new instance of the Scene3DVector class.
Declaration
public Scene3DVector()
Scene3DVector(float x, float y, float z) Constructor
Initializes a new instance of the Scene3DVector class with specified settings.
Declaration
public Scene3DVector(float x, float y, float z)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | The X-coordinate of the 3D vector. |
| y | float | The Y-coordinate of the 3D vector. |
| z | float | The Z coordinate of the 3D vector. |
Fields
DEFAULT Field
A default 3D vector with all coordinates set to 0.
Declaration
public static final Scene3DVector DEFAULT
Field Value
| Type | Description |
|---|---|
Scene3DVector |
A default 3D vector with all coordinates set to 0. |
Methods
equals(Object obj) Method
Determines whether the specified object is equal to the current Scene3DVector object.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The object used in comparison with the current |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(Scene3DVector other) Method
Determines whether the specified 3D vector is equal to this instance.
Declaration
public boolean equals(Scene3DVector other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | Scene3DVector |
The 3D vector to compare with this instance. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getX() Method
Returns the X-coordinate of the 3D vector.
Declaration
public float getX()
Returns
| Type | Description |
|---|---|
| float | The X-coordinate of the 3D vector. |
getY() Method
Returns the Y-coordinate of the 3D vector.
Declaration
public float getY()
Returns
| Type | Description |
|---|---|
| float | The Y-coordinate of the 3D vector. |
getZ() Method
Returns the Z coordinate of the 3D vector.
Declaration
public float getZ()
Returns
| Type | Description |
|---|---|
| float | The Z coordinate of the 3D vector. |
hashCode() Method
Returns a hash code value for this 3D vector.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code value for this 3D vector. |