Class Orienter
The Orienter class implements IOrienter.
Assembly: cs.temp.dll.dll
Syntax
public class Orienter : MonoBehaviour, IOrienter
Fields
actives
Orientables in the currently processing fragment.
Declaration
protected readonly List<Orienter.WeightedRotation> actives
Field Value
Properties
AlignmentManager
Declaration
public IAlignmentManager AlignmentManager { get; set; }
Property Value
Methods
AverageRotation(Orienter.WeightedRotation, Orienter.WeightedRotation)
Compute a new weighted rotation representing the two input weighted rotations.
Declaration
protected Orienter.WeightedRotation AverageRotation(Orienter.WeightedRotation accum, Orienter.WeightedRotation add)
Parameters
Returns
ComputeRotation(IOrientable, IOrientable)
Compute the rotation that aligns a and b correctly in pinned space.
Declaration
protected virtual Orienter.WeightedRotation ComputeRotation(IOrientable a, IOrientable b)
Parameters
Returns
ComputeRotations()
Compute rotations by pairs, weighting by distance and averaging for each orientable.
Declaration
protected virtual bool ComputeRotations()
Returns
Register(IOrientable)
Declaration
public void Register(IOrientable orientable)
Parameters
Reorient(FragmentId, IAlignmentManager)
Declaration
public void Reorient(FragmentId fragmentId, IAlignmentManager mgr)
Parameters
Unregister(IOrientable)
Declaration
public void Unregister(IOrientable orientable)
Parameters
Implements