Line structure. (In 3D space) More...
#include <line.hpp>
Public Member Functions | |
| Line (f32x4 start, f32x4 end) noexcept | |
| Creates a new line structure. (In 3D space) | |
| Line ()=default | |
| Creates a new zero size line structure. | |
| f32x4 | getDirection (bool normalize=true) const noexcept |
| Returns line direction vector in 3D space. | |
| Line | operator* (f32x4 v) const noexcept |
| Line | operator/ (f32x4 v) const noexcept |
| Line | operator+ (f32x4 v) const noexcept |
| Line | operator- (f32x4 v) const noexcept |
| Line & | operator*= (f32x4 v) noexcept |
| Line & | operator/= (f32x4 v) noexcept |
| Line & | operator+= (f32x4 v) noexcept |
| Line & | operator-= (f32x4 v) noexcept |
| bool | operator== (const Line &v) const noexcept |
| bool | operator!= (const Line &v) const noexcept |
Public Attributes | |
| f32x4 | start = f32x4::zero |
| Line start point in 3D space. | |
| f32x4 | end = f32x4::zero |
| Line end point in 3D space. | |
Line structure. (In 3D space)
Defined by a start and end points in the space.
Creates a new line structure. (In 3D space)
| start | target line start point in the space |
| end | target line end point in the space |
|
inlinenoexcept |
Returns line direction vector in 3D space.
| normalize | is direction vector should be normalized |