Class Vector_3
java.lang.Object
Jcg.geometry.Vector_2
Jcg.geometry.Vector_3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the vector difference (v-u), where u is the current vectorintReturn the dimension of the spaceReturn a new vector obtained by scalar divisionbooleangetCartesian(int i) return the i-th cartesian coordinate of the pointgetX()getY()getZ()Return the inner product of two vectorsReturn a new vector obtained by multiplying by a scalaropposite()Return the opposite of the current vectorvoidsetCartesian(int i, Number x) set the i-th cartesian coordinatevoidvoidvoidReturn the square length of a vectorReturn the vector sum (v+u), where u is the current vectortoString()Return a String representing vector coordinatesMethods inherited from class Jcg.geometry.Vector_2
equals, perpendicular
-
Field Details
-
z
-
-
Constructor Details
-
Vector_3
public Vector_3() -
Vector_3
-
Vector_3
-
-
Method Details
-
getX
-
getY
-
getZ
-
setX
-
setY
-
setZ
-
equals
-
toString
-
dimension
-
getCartesian
Description copied from interface:Vector_return the i-th cartesian coordinate of the point- Specified by:
getCartesianin interfaceVector_- Overrides:
getCartesianin classVector_2
-
setCartesian
Description copied from interface:Vector_set the i-th cartesian coordinate- Specified by:
setCartesianin interfaceVector_- Overrides:
setCartesianin classVector_2
-
sum
-
difference
Description copied from interface:Vector_Return the vector difference (v-u), where u is the current vector- Specified by:
differencein interfaceVector_- Overrides:
differencein classVector_2
-
opposite
-
innerProduct
Description copied from interface:Vector_Return the inner product of two vectors- Specified by:
innerProductin interfaceVector_- Overrides:
innerProductin classVector_2
-
divisionByScalar
Description copied from interface:Vector_Return a new vector obtained by scalar division- Specified by:
divisionByScalarin interfaceVector_- Overrides:
divisionByScalarin classVector_2
-
multiplyByScalar
Description copied from interface:Vector_Return a new vector obtained by multiplying by a scalar- Specified by:
multiplyByScalarin interfaceVector_- Overrides:
multiplyByScalarin classVector_2
-
squaredLength
Description copied from interface:Vector_Return the square length of a vector- Specified by:
squaredLengthin interfaceVector_- Overrides:
squaredLengthin classVector_2
-
crossProduct
-