AI Testing Simulator
Loading...
Searching...
No Matches
Entity.Location Class Reference

A class representing a location in 3D space and rotation. More...

Inheritance diagram for Entity.Location:

Public Member Functions

 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.
 

Properties

Vector3Ser Vector3Ser [get, set]
 
float Rot [get, set]
 
float X [get]
 
float Y [get]
 
float Z [get]
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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
vector3The 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
vector3The position in 3D space represented as a Vector3.
rotThe 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
xThe x-coordinate of the position in 3D space.
yThe y-coordinate of the position in 3D space.
zThe z-coordinate of the position in 3D space.
rotThe rotation around the y-axis.

Member Function Documentation

◆ 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: