Class TofArTransform
Serializable transform
Inheritance
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
[MessagePackObject(false)]
public class TofArTransform
Constructors
TofArTransform()
Constructor
Declaration
public TofArTransform()
TofArTransform(TofArVector3, TofArQuaternion, TofArVector3)
Constructor
Declaration
public TofArTransform(TofArVector3 position, TofArQuaternion rotation, TofArVector3 scale)
Parameters
Type | Name | Description |
---|---|---|
TofArVector3 | position | |
TofArQuaternion | rotation | |
TofArVector3 | scale |
TofArTransform(Transform)
Constructor
Declaration
public TofArTransform(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform |
Fields
forward
Forward value
Declaration
[Key("forward")]
public TofArVector3 forward
Field Value
Type |
---|
TofArVector3 |
position
Position value
Declaration
[Key("position")]
public TofArVector3 position
Field Value
Type |
---|
TofArVector3 |
right
Right value
Declaration
[Key("right")]
public TofArVector3 right
Field Value
Type |
---|
TofArVector3 |
rotation
Rotation value
Declaration
[Key("rotation")]
public TofArQuaternion rotation
Field Value
Type |
---|
TofArQuaternion |
scale
Scale value
Declaration
[Key("scale")]
public TofArVector3 scale
Field Value
Type |
---|
TofArVector3 |
up
Up value
Declaration
[Key("up")]
public TofArVector3 up
Field Value
Type |
---|
TofArVector3 |
Methods
Equals(Object)
Compare
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other | Object to compare |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when equal |
Overrides
GetHashCode()
Get hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
Operators
Implicit(Transform to TofArTransform)
Convert UnityEngine.Transform to TofArTransform
Declaration
public static implicit operator TofArTransform(Transform t)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | t |
Returns
Type | Description |
---|---|
TofArTransform |