Vec3
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Implemented Interfaces
Vec3 implements the following interfaces. That means all methods defined in these interfaces are also available in Vec3
Constructors
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Methods
Return Type: Vec3
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: boolean
Parameter | Type |
---|---|
Parameter position | Type Position |
Parameter maxDistance | Type double |
Return Type: double
Parameter | Type |
---|---|
Parameter other | Type Vec3 |
Return Type: double
Parameter | Type |
---|---|
Parameter other | Type Vec3 |
Return Type: double
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: double
Parameter | Type |
---|---|
Parameter other | Type Vec3 |
Return Type: double
Parameter | Type |
---|---|
Parameter axis | Type Axis |
Return Type: double
Return Type: double
Return Type: double
Return Type: double
Return Type: Vec3
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: Vec3
Return Type: Vec3
Return Type: Vec3
Parameter | Type |
---|---|
Parameter scalar | Type double |
Return Type: Vec3
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: Vec3
Parameter | Type |
---|---|
Parameter pitch | Type float |
Return Type: Vec3
Parameter | Type |
---|---|
Parameter yaw | Type float |
Return Type: Vec3
Parameter | Type |
---|---|
Parameter roll | Type float |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name horizontalDistance | Type double | Has Getter true | Has Setter false |
Name horizontalDistanceSqr | Type double | Has Getter true | Has Setter false |
Name length | Type double | Has Getter true | Has Setter false |
Name lengthSqr | Type double | Has Getter true | Has Setter false |
Name normalize | Type Vec3 | Has Getter true | Has Setter false |
Name reverse | Type Vec3 | Has Getter true | Has Setter false |