Class HPNode
High Precision node allowing to get its local and universe position in double precision.
Inherited Members
Namespace: Unity.Geospatial.HighPrecision
Assembly: solution.dll
Syntax
public abstract class HPNode : MonoBehaviour
Remarks
This interface is not intended to be implemented outside of this package.
Fields
m_Children
List of the child nodes of this instance. Those nodes will multiply their LocalMatrix by this instance UniverseMatrix to get their UniverseMatrix and same thing for the WorldMatrix.
Declaration
protected readonly List<HPTransform> m_Children
Field Value
Type | Description |
---|---|
List<HPTransform> |
Properties
LocalMatrix
Translation, rotation and scaling information relative to its direct parent.
Declaration
public abstract double4x4 LocalMatrix { get; }
Property Value
Type | Description |
---|---|
double4x4 |
LocalPosition
Translation information relative to its direct parent.
Declaration
public abstract double3 LocalPosition { get; set; }
Property Value
Type | Description |
---|---|
double3 |
LocalRotation
Orientation information relative to its direct parent.
Declaration
public abstract quaternion LocalRotation { get; set; }
Property Value
Type | Description |
---|---|
quaternion |
LocalScale
Scaling information relative to its direct parent.
Declaration
public abstract float3 LocalScale { get; set; }
Property Value
Type | Description |
---|---|
float3 |
UniverseMatrix
Translation, rotation and scaling information relative to the center of the universe.
Declaration
public abstract double4x4 UniverseMatrix { get; }
Property Value
Type | Description |
---|---|
double4x4 |
UniversePosition
Translation information relative to the center of the universe.
Declaration
public abstract double3 UniversePosition { get; set; }
Property Value
Type | Description |
---|---|
double3 |
UniverseRotation
Orientation information relative to the center of the universe.
Declaration
public abstract quaternion UniverseRotation { get; set; }
Property Value
Type | Description |
---|---|
quaternion |
WorldMatrix
Translation, rotation and scaling information relative to the Unity world center.
Declaration
public abstract double4x4 WorldMatrix { get; }
Property Value
Type | Description |
---|---|
double4x4 |
Methods
RegisterChild(HPTransform)
Set a as a child of this instance.
Declaration
public virtual void RegisterChild(HPTransform child)
Parameters
Type | Name | Description |
---|---|---|
HPTransform | child | Node to register |
UnregisterChild(HPTransform)
Remove a HPTransform from the list of registered children.
Declaration
public virtual void UnregisterChild(HPTransform child)
Parameters
Type | Name | Description |
---|---|---|
HPTransform | child | Node to unregister. |