MCPcopy
hub / github.com/fogleman/ln / MulScalar

Method MulScalar

ln/vector.go:80–82  ·  view source on GitHub ↗
(b float64)

Source from the content-addressed store, hash-verified

78}
79
80func (a Vector) MulScalar(b float64) Vector {
81 return Vector{a.X * b, a.Y * b, a.Z * b}
82}
83
84func (a Vector) DivScalar(b float64) Vector {
85 return Vector{a.X / b, a.Y / b, a.Z / b}

Callers 15

MulBoxMethod · 0.95
IntersectSegmentMethod · 0.80
Paths4Method · 0.80
Paths3Method · 0.80
PathsMethod · 0.80
SegmentDistanceMethod · 0.80
ChopMethod · 0.80
PositionMethod · 0.80
PathsMethod · 0.80
FitInsideMethod · 0.80
PathsMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected