Arguments: |
|
---|
Arguments: |
|
---|---|
Returns: | vector sum of this vector and rhs |
Returns: | a copy of this Vec3. |
---|
Make a copy of this vector.
Arguments: |
|
---|---|
Returns: | the vector with the component wise product |
Arguments: |
|
---|---|
Returns: | a Vec3 representing the vector product of this vector with rhs |
Arguments: |
|
---|---|
Returns: | returns a vector scaled by (1/rhs) |
Arguments: |
|
---|---|
Returns: | a scalar representing the dot product of this vector with rhs |
param rhs: any type returns: True if rhs is not a quaternion and x,y,and z fields
rtype: | bool |
---|
Returns: | the length of this vector |
---|
Returns: | the length-squared of this vector |
---|
param rhs: a Vec3 returns: a Vec3 where each component is the maximum of the components
of this vector and rhs For example, Vec3(3, 4, 7).max( Vec3(1, 5, 6)) returns a Vec3(3, 5, 7)
param rhs: a Vec3 returns: a Vec3 where each component is the minimum of the components
of this vector and rhs For example, Vec3(3, 4, 7).min( Vec3(1, 5, 6) ) returns a Vec3(1, 4, 6)
Arguments: |
|
---|---|
Returns: | if rhs is a number, returns what scale(rhs) returns if rhs is a Vec3, it returns the componentMultiply(rhs) |
Returns: | negation of this vector |
---|
Returns: | the unit Vec3 normal to this vector |
---|
Arguments: |
|
---|---|
Returns: | the Vec3 which is the reflection of this vector in the normal |
Arguments: |
|
---|---|
Returns: | returns a vector scaled by the amount rhs |
Arguments: |
|
---|---|
Returns: | vector difference of this vector and rhs (this - rhs) |