Class HPRoot
The HPRoot determines how the universe space will be converted into world space. It defines the coordinate in universe space which corresponds to the position of the GameObject, in world space.
Inherited Members
Namespace: Unity.Geospatial.HighPrecision
Assembly: solution.dll
Syntax
[ExecuteAlways]
[AddComponentMenu("HighPrecision/HPRoot")]
public class HPRoot : HPNode
Properties
LocalMatrix
Translation, rotation and scaling information relative to its direct parent.
Declaration
public override double4x4 LocalMatrix { get; }
Property Value
Type | Description |
---|---|
double4x4 |
Overrides
LocalPosition
Translation information relative to its direct parent.
Declaration
public override double3 LocalPosition { get; set; }
Property Value
Type | Description |
---|---|
double3 |
Overrides
LocalRotation
Orientation information relative to its direct parent.
Declaration
public override quaternion LocalRotation { get; set; }
Property Value
Type | Description |
---|---|
quaternion |
Overrides
LocalScale
Scaling information relative to its direct parent.
Declaration
public override float3 LocalScale { get; set; }
Property Value
Type | Description |
---|---|
float3 |
Overrides
RootUniversePosition
Set the position in universe space which corresponds to the HPRoot's position in the scene.
Declaration
public double3 RootUniversePosition { get; set; }
Property Value
Type | Description |
---|---|
double3 |
RootUniverseRotation
Set the rotation of the universe space which corresponds to the HPRoot's rotation in the scene.
Declaration
public quaternion RootUniverseRotation { get; set; }
Property Value
Type | Description |
---|---|
quaternion |
UniverseMatrix
Translation, rotation and scaling information relative to the center of the universe.
Declaration
public override double4x4 UniverseMatrix { get; }
Property Value
Type | Description |
---|---|
double4x4 |
Overrides
UniversePosition
Translation information relative to the center of the universe.
Declaration
public override double3 UniversePosition { get; set; }
Property Value
Type | Description |
---|---|
double3 |
Overrides
UniverseRotation
Orientation information relative to the center of the universe.
Declaration
public override quaternion UniverseRotation { get; set; }
Property Value
Type | Description |
---|---|
quaternion |
Overrides
WorldMatrix
Translation, rotation and scaling information relative to the Unity world center.
Declaration
public override double4x4 WorldMatrix { get; }
Property Value
Type | Description |
---|---|
double4x4 |
Overrides
Methods
SetRootTR(double3, quaternion)
Simultaneously set root universe position and root universe rotation in a single call, updating underlying transforms only once.
Declaration
public void SetRootTR(double3 position, quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
double3 | position | The position in universe space which corresponds to the HPRoot's position in the scene |
quaternion | rotation | The position in universe space which corresponds to the HPRoot's rotation in the scene |