Incorrect documentation for SCNVector on iOS (and missing for Swift)
| Originator: | david.ronnqvist | ||
| Number: | rdar://19436323 | Date Originated: | |
| Status: | Oepn | Resolved: | |
| Product: | Documentation | Product Version: | |
| Classification: | Reproducible: |
Summary:
The iOS documentations for SCNVector3 and SCNVector4 incorrectly state that it's defined as:
typedef struct SCNVector3 { CGFloat x, y , z,; } SCNVector4;
typedef struct SCNVector4 { CGFloat x, y , z, w; } SCNVector4;
but if you look in the header, you will see they are defines as this (float instead of CGFloat):
typedef struct SCNVector3 { float x, y, z; } SCNVector3;
typedef struct SCNVector4 { float x, y, z, w; } SCNVector4;
Also, looking at the Swift documentation, none of the types has their "Declaration" included
https://developer.apple.com/library/ios/documentation/SceneKit/Reference/SceneKit_DataTypes/index.html#//apple_ref/c/tdef/SCNMatrix4
Steps to Reproduce:
1. Look at the SCNVector types in the documentation
2. Look at their declarations in SceneKitTypes.h
Expected Results:
They should be the same and Swift declaration is available in the documentation
Actual Results:
The are different (CGFloat instead of Float and Swift declaration is missing from the documentation
Version:
SceneKit Data Types Reference
https://developer.apple.com/library/ios/documentation/SceneKit/Reference/SceneKit_DataTypes/index.html#//apple_ref/c/tdef/SCNMatrix4
Notes:
n/a
Configuration:
n/a
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!