-
Notifications
You must be signed in to change notification settings - Fork 2
OTPPoint
OTP Point
public struct OTPPoint: Comparable, Hashable
The smallest, indivisible component having properties of motion. This may be the center of a complex Object, or merely one of many Points on it.
OTP Points are identified using an OTPAddress
, and contain OTPModule
s containing transform information about the point. They may optionally have a CID identifier and sampled timestamp for a winning OTPProducer
.
Comparable
, Hashable
Initializes a new OTP Point.
public init(address: OTPAddress, priority: UInt8, name: String = "")
- address: The Address of the Point.
- priority: The Priority for this Point.
- name: Optional: A human-readable name for this Point.
The OTPAddress
identifying the point.
public var address: OTPAddress
The priority of the point, used when arbitrating between multiple points with the same OTPAddress
.
public var priority: UInt8
A human-readable name for this point.
public var name: String
The modules for this point.
public var modules: [OTPModule]
An optional winning CID for this point (when from a producer).
public var cid: UUID?
An optional sampled time for this point (when from a producer).
public var sampled: UInt64?
OTP Point Hashable
public func hash(into hasher: inout Hasher)
- hashable: The hasher to use when combining the components of this instance.
OTP Point Equatable
public static func == (lhs: Self, rhs: Self) -> Bool
- lhs: The first instance to be compared.
- rhs: The second instance to be compared.
Whether the instances are considered equal.
OTP Point Comparable
public static func < (lhs: Self, rhs: Self) -> Bool
- lhs: The first instance to be compared.
- rhs: The second instance to be compared.
Whether the first instance is considered smaller than the second.
Generated at 2021-09-01T18:46:51+0000 using swift-doc 1.0.0-rc.1.
Types
- ComponentSocketError
- OTPAddress
- OTPComponentState
- OTPConsumer
- OTPConsumerStatus
- OTPIPMode
- OTPModuleIdentifier
- OTPModulePosition
- OTPModulePosition.Scaling
- OTPModulePositionVelAccel
- OTPModuleReferenceFrame
- OTPModuleRotation
- OTPModuleRotationVelAccel
- OTPModuleScale
- OTPPoint
- OTPPointValidationError
- OTPProducer
- OTPProducerStatus