A point in 3D space. This struct has three floating-point fields: x
, y
, and z
.
More...
|
| Point () |
| Empty constructor.
|
|
| Point (float x, float y, float z) |
| Constructor with float parameters. More...
|
|
override string | ToString () |
| Returns point's components x, y, z as a string.
|
|
Vec | PointToVec () |
| Turns a point into a vector and returns it. More...
|
|
A point in 3D space. This struct has three floating-point fields: x
, y
, and z
.
◆ Point()
PGENLib.Point.Point |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Constructor with float parameters.
- Parameters
-
◆ operator*()
static Point PGENLib.Point.operator* |
( |
Point |
p, |
|
|
float |
a |
|
) |
| |
|
static |
Returns the product between a point and a scalar.
- Parameters
-
- Returns
◆ operator+()
Return the sum between a point and a vector, which is a point.
- Parameters
-
- Returns
- point
◆ operator-() [1/2]
Returns the difference between two points, as a vector.
- Parameters
-
- Returns
- vector
◆ operator-() [2/2]
Return the difference between a point and a vector, as point.
- Parameters
-
- Returns
◆ operator/()
static Point PGENLib.Point.operator/ |
( |
Point |
v, |
|
|
float |
s |
|
) |
| |
|
static |
Returns the division between a point and a scalar.
- Parameters
-
- Returns
◆ PointToVec()
Vec PGENLib.Point.PointToVec |
( |
| ) |
|
Turns a point into a vector and returns it.
- Returns
The documentation for this struct was generated from the following file:
- /Users/fra/Documenti/Università/Magistrale/SNIF/PhotoGENius/PGENLib/Geometry.cs