trait PhysicalVectorOps[A] extends AnyRef
- Alphabetic
- By Inheritance
- PhysicalVectorOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
*(d: Double): A
Scalar multiplication.
Scalar multiplication. Multiples both components by the argument.
- d
Scalar to multiply by
- returns
PhysicalVector after the multiplication
-
abstract
def
+(d: Double): A
Scalar summation.
Scalar summation. Adds a scala to both components.
- d
scalar to add
- returns
PhysicalVector of the sum
-
abstract
def
+(that: A): A
summation of two PhysicalVector
summation of two PhysicalVector
- that
the other to sum
- returns
PhysicalVector equal to the sum of both vectors
-
abstract
def
-(d: Double): A
Scalar subtraction.
Scalar subtraction. Removes the argument from this vector
- d
scala to remove
- returns
the difference between this and that scalar
-
abstract
def
-(that: A): A
Subtraction of a Vector2D from this vector.
-
abstract
def
/(d: Double): A
Division by a scalar.
Division by a scalar.
- d
Scalar to divide this by
- returns
result from the division
-
abstract
def
canEqual(other: Any): Boolean
Checks whether we are allowed to compare this object to another
Checks whether we are allowed to compare this object to another
- other
is the comparisoin legal
-
abstract
def
distanceTo(that: A): Double
Computes the distance between this and that assuming both PhysicalVector represent points.
Computes the distance between this and that assuming both PhysicalVector represent points.
- that
point to compute the distance to
- returns
L2 distance between both points
-
abstract
def
dot(that: A): Double
Copmutes the dot product between both vectors.
Copmutes the dot product between both vectors.
- that
PhysicalVector to compute the dot product with
- returns
dot product between both vectors
-
abstract
def
norm: Double
Computes the L2 norm of this vector.
Computes the L2 norm of this vector.
- returns
Double
-
abstract
def
normalized: A
Returns the same vector except with unit length.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )