<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNVector/init(byMultiplying:byScalar:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNVector(cm)vectorByMultiplyingVector:byScalar:"
  },
  "title" : "init(byMultiplying:byScalar:)"
}
-->

# init(byMultiplying:byScalar:)

Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value.

```
init(byMultiplying vector: VNVector, byScalar scalar: Double)
```

## Parameters

`vector`

The vector.

`scalar`

The scalar value by which to multiply the x-axis and y-axis projections.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)