BinOp
Provides arithmetic and geometric operations for Vector3D.
Value parameters
- self
-
The vector instance.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Multiplies the vector by a scalar.
Multiplies the vector by a scalar.
Value parameters
- scalar
-
The scalar value.
Attributes
- Returns
-
The scaled vector.
Adds two vectors.
Adds two vectors.
Value parameters
- other
-
The other vector.
Attributes
- Returns
-
The sum vector.
Subtracts another vector from this vector.
Subtracts another vector from this vector.
Value parameters
- other
-
The other vector.
Attributes
- Returns
-
The difference vector.
Divides the vector by a scalar.
Divides the vector by a scalar.
Value parameters
- scalar
-
The scalar value.
Attributes
- Returns
-
The scaled vector.
Computes the cross product of two vectors.
Computes the cross product of two vectors.
Value parameters
- other
-
The other vector.
Attributes
- Returns
-
The cross product vector.
Computes the dot product of two vectors.
Computes the dot product of two vectors.
Value parameters
- other
-
The other vector.
Attributes
- Returns
-
The dot product.
Checks if two vectors are approximately equal within a given epsilon.
Checks if two vectors are approximately equal within a given epsilon.
Value parameters
- epsilon
-
The tolerance.
- other
-
The other vector.
Attributes
- Returns
-
True if all components are within epsilon, false otherwise.