Vector3.Mul C# (CSharp) Метод

Mul() публичный Метод

public Mul ( Vector3 v ) : Vector3
v Vector3
Результат Vector3
  public Vector3 Mul (Vector3 v) {
    return new Vector3(
        this.x * v.x,
        this.y * v.y,
        this.z * v.z
        );
  }

Same methods

Vector3::Mul ( float v ) : Vector3

Usage Example

Пример #1
0
        public override void Execute(ref WooState state)
        {
            if (state._Objects > 0)
            {
                state._Objects--;
                Vector3 val = new Vector3(0.0, 0.5, 0.0);
                val.y *= state._Scale.y;
                val.Mul(state._Rotation);

                Fractal newFractal = new Fractal(new Vector3(state._Position.x + val.x, state._Position.y + val.y, state._Position.z + val.z),
                                                 state._Scale * 0.5,
                                                 state._Rotation,
                                                 state._DistanceMinimum,
                                                 state._DistanceScale,
                                                 state._DistanceOffset,
                                                 state._DistanceIterations,
                                                 state._DistanceExtents,
                                                 state._StepSize,
                                                 state._FractalIterations,
                                                 state._FractalIterationCount,
                                                 state._ColourIterationCount,
                                                 state._DEMode);
                newFractal._Material = GenerateMaterial(state);
                newFractal.CreateElement(state._Preview, state._Parent);
            }
        }
All Usage Examples Of Vector3::Mul