A class representing a location in 3D space and rotation.
More...
|
| Location (Vector3 vector3) |
| Initializes a new instance of the Location class with a specified position and a rotation of 0.
|
|
| Location (Vector3 vector3, float rot) |
| Initializes a new instance of the Location class with a specified position and rotation.
|
|
| Location (float x, float y, float z, float rot) |
| Initializes a new instance of the Location class with a specified position and rotation.
|
|
| Location () |
| Initializes a new empty instance of the Location class.
|
|
object | Clone () |
| Creates a deep copy of this instance of the Location class.
|
|
|
Vector3Ser | Vector3Ser [get, set] |
|
float | Rot [get, set] |
|
float | X [get] |
|
float | Y [get] |
|
float | Z [get] |
|
A class representing a location in 3D space and rotation.
This class implements the ICloneable interface to provide a way to create a deep copy of an instance of this class.
◆ Location() [1/3]
Entity.Location.Location |
( |
Vector3 |
vector3 | ) |
|
|
inline |
Initializes a new instance of the Location class with a specified position and a rotation of 0.
- Parameters
-
vector3 | The position in 3D space represented as a Vector3. |
◆ Location() [2/3]
Entity.Location.Location |
( |
Vector3 |
vector3, |
|
|
float |
rot |
|
) |
| |
|
inline |
Initializes a new instance of the Location class with a specified position and rotation.
- Parameters
-
vector3 | The position in 3D space represented as a Vector3. |
rot | The rotation around the y-axis. |
◆ Location() [3/3]
Entity.Location.Location |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
rot |
|
) |
| |
|
inline |
Initializes a new instance of the Location class with a specified position and rotation.
- Parameters
-
x | The x-coordinate of the position in 3D space. |
y | The y-coordinate of the position in 3D space. |
z | The z-coordinate of the position in 3D space. |
rot | The rotation around the y-axis. |
◆ Clone()
object Entity.Location.Clone |
( |
| ) |
|
|
inline |
Creates a deep copy of this instance of the Location class.
- Returns
- A new instance of the Location class that is a deepcopy of this instance.
The documentation for this class was generated from the following file:
- C:/Users/stefa/source/repos/AI_Testing_Simulator/Unity/Assets/Entities/Location.cs