Struct Point3f
Represents a 3D point with single-precision floating-point coordinates.
Implements
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public struct Point3f : IEquatable<Point3f>
Constructors
| Improve this Doc View SourcePoint3f(Single, Single, Single)
Initializes a new instance of the Point3f structure from the specified coordinates.
Declaration
public Point3f(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of the point. |
Single | y | The y-coordinate of the point. |
Single | z | The z-coordinate of the point. |
Fields
| Improve this Doc View SourceX
The x-coordinate of the point.
Declaration
public float X
Field Value
Type | Description |
---|---|
Single |
Y
The y-coordinate of the point.
Declaration
public float Y
Field Value
Type | Description |
---|---|
Single |
Z
The z-coordinate of the point.
Declaration
public float Z
Field Value
Type | Description |
---|---|
Single |
Properties
| Improve this Doc View SourceZero
Declaration
public static Point3f Zero { get; }
Property Value
Type | Description |
---|---|
Point3f |
Methods
| Improve this Doc View SourceEquals(Point3f)
Returns a value indicating whether this instance has the same coordinates as a specified Point3f structure.
Declaration
public bool Equals(Point3f other)
Parameters
Type | Name | Description |
---|---|---|
Point3f | other | The Point3f structure to compare to this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Object)
Tests to see whether the specified object is a Point3f structure with the same coordinates as this Point3f structure.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The |
Returns
Type | Description |
---|---|
Boolean | true if |
GetHashCode()
Returns a hash code for this Point3f structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | An integer value that specifies a hash value for this Point3f structure. |
ToString()
Creates a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A |
Operators
| Improve this Doc View SourceAddition(Point3f, Point3f)
Adds two Point3f structures.
Declaration
public static Point3f operator +(Point3f left, Point3f right)
Parameters
Type | Name | Description |
---|---|---|
Point3f | left | The Point3f structure on the left of the addition operator. |
Point3f | right | The Point3f structure on the right of the addition operator. |
Returns
Type | Description |
---|---|
Point3f | The Point3f that is the result of adding the |
Equality(Point3f, Point3f)
Tests whether two Point3f structures are equal.
Declaration
public static bool operator ==(Point3f left, Point3f right)
Parameters
Type | Name | Description |
---|---|---|
Point3f | left | The Point3f structure on the left of the equality operator. |
Point3f | right | The Point3f structure on the right of the equality operator. |
Returns
Type | Description |
---|---|
Boolean | true if |
Inequality(Point3f, Point3f)
Tests whether two Point3f structures are different.
Declaration
public static bool operator !=(Point3f left, Point3f right)
Parameters
Type | Name | Description |
---|---|---|
Point3f | left | The Point3f structure on the left of the inequality operator. |
Point3f | right | The Point3f structure on the right of the inequality operator. |
Returns
Type | Description |
---|---|
Boolean | true if |
Multiply(Point3f, Single)
Multiplies a Point3f structure by an integer scalar.
Declaration
public static Point3f operator *(Point3f point, float scalar)
Parameters
Type | Name | Description |
---|---|---|
Point3f | point | The Point3f structure to multiply by the |
Single | scalar | The scalar by which to multiply the |
Returns
Type | Description |
---|---|
Point3f | The Point3f that is the result of multiplying |
Multiply(Single, Point3f)
Multiplies a Point3f structure by an integer scalar.
Declaration
public static Point3f operator *(float scalar, Point3f point)
Parameters
Type | Name | Description |
---|---|---|
Single | scalar | The scalar by which to multiply the |
Point3f | point | The Point3f structure to multiply by the |
Returns
Type | Description |
---|---|
Point3f | The Point3f that is the result of multiplying |
Subtraction(Point3f, Point3f)
Subtracts two Point3f structures.
Declaration
public static Point3f operator -(Point3f left, Point3f right)
Parameters
Type | Name | Description |
---|---|---|
Point3f | left | The Point3f structure on the left of the subtraction operator. |
Point3f | right | The Point3f structure on the right of the subtraction operator. |
Returns
Type | Description |
---|---|
Point3f | The Point3f that is the result of subtracting the |
UnaryNegation(Point3f)
Returns the inversion with respect to the origin of the specified Point3f structure.
Declaration
public static Point3f operator -(Point3f point)
Parameters
Type | Name | Description |
---|---|---|
Point3f | point | The Point3f structure for which to compute the inversion. |
Returns
Type | Description |
---|---|
Point3f | The Point3f that is the result of inverting |