build/module/lib/visual/ArrowFH.js
/**
     * @param contextManager This will usually be provided by the `Engine`.
     * @param options
     */
@param contextManager This will usually be provided by the `Engine`.
@param options
@param contextManager This will usually be provided by the ` Engine ` . @param options
function ArrowFH(contextManager, options) {
        if (options === void 0) { options = {}; }
        this.$vector = Geometric3.zero(false);
        this.$position = Geometric3.zero(false);
        this.$attitude = Geometric3.zero(false);
        this.$color = Color.fromRGB(1, 1, 1);
        this.$isHeadVisible = true;
        this.head = new ArrowHead(contextManager, options);
        this.tail = new ArrowTail(contextManager, options);
        this.$vector.copyVector(this.head.vector).addVector(this.tail.vector);
        this.$vectorLock = this.$vector.lock();
        this.$position.copyVector(this.tail.position);
        this.$positionLock = this.$position.lock();
        this.$attitude.copySpinor(this.tail.attitude);
        this.$attitudeLock = this.$attitude.lock();
        this.$color.copy(this.tail.color);
        this.$colorLock = this.$color.lock();
        this.updateHeadAttitude();
        this.updateHeadPosition();
    }
function ArrowFH ( contextManager , options ) { if ( options === void 0 ) { options = { } ; } this . $vector = Geometric3 . zero ( false ) ; this . $position = Geometric3 . zero ( false ) ; this . $attitude = Geometric3 . zero ( false ) ; this . $color = Color . fromRGB ( 1 , 1 , 1 ) ; this . $isHeadVisible = true ; this . head = new ArrowHead ( contextManager , options ) ; this . tail = new ArrowTail ( contextManager , options ) ; this . $vector . copyVector ( this . head . vector ) . addVector ( this . tail . vector ) ; this . $vectorLock = this . $vector . lock ( ) ; this . $position . copyVector ( this . tail . position ) ; this . $positionLock = this . $position . lock ( ) ; this . $attitude . copySpinor ( this . tail . attitude ) ; this . $attitudeLock = this . $attitude . lock ( ) ; this . $color . copy ( this . tail . color ) ; this . $colorLock = this . $color . lock ( ) ; this . updateHeadAttitude ( ) ; this . updateHeadPosition ( ) ; }
@param contextManager This will usually be provided by the `Engine`.
@param contextManager This will usually be provided by the ` Engine ` .